Skip to content

Commit 97b0252

Browse files
kaushikhanderafaelfranca
authored andcommitted
Fix return values for authenticate in docs and add present? to check nil values
1 parent 98636b3 commit 97b0252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_controller/metal/http_authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def request_http_digest_authentication(realm = "Application", message = nil)
211211
end
212212
end
213213

214-
# Returns false on a valid response, true otherwise.
214+
# Returns true on a valid response, false otherwise.
215215
def authenticate(request, realm, &password_procedure)
216216
request.authorization && validate_digest_response(request, realm, &password_procedure)
217217
end

0 commit comments

Comments
 (0)