Skip to content

Commit 9f6340f

Browse files
committed
Correct authentication proc example
1 parent 2719c79 commit 9f6340f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Set admin username and password in an initializer:
4545
4646
ApiDocServer.configure do |config|
4747
config.authentication_proc = proc do |controller|
48-
authenticate_or_request_with_http_basic do |username, password|
48+
controller.authenticate_or_request_with_http_basic do |username, password|
4949
User.find_by(name: username, password: password)
5050
end
5151
end

0 commit comments

Comments
 (0)