Skip to content

Commit

Permalink
Fix login_procedure doc using backticks
Browse files Browse the repository at this point in the history
Also convert a few other <tt> usage to plusses
  • Loading branch information
skipkayhil committed Oct 5, 2023
1 parent b71c75e commit 11a4f98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions actionpack/lib/action_controller/metal/http_authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ module Token
module ControllerMethods
# Authenticate using an HTTP Bearer token, or otherwise render an HTTP
# header requesting the client to send a Bearer token. For the authentication
# to be considered successful, `login_procedure` should return a non-nil
# to be considered successful, +login_procedure+ should return a non-nil
# value. Typically, the authenticated user is returned.
#
# See ActionController::HttpAuthentication::Token for example usage.
Expand All @@ -434,8 +434,8 @@ def authenticate_or_request_with_http_token(realm = "Application", message = nil
end

# Authenticate using an HTTP Bearer token.
# Returns the return value of <tt>login_procedure</tt> if a
# token is found. Returns <tt>nil</tt> if no token is found.
# Returns the return value of +login_procedure+ if a
# token is found. Returns +nil+ if no token is found.
#
# See ActionController::HttpAuthentication::Token for example usage.
def authenticate_with_http_token(&login_procedure)
Expand All @@ -452,8 +452,8 @@ def request_http_token_authentication(realm = "Application", message = nil)
# If token Authorization header is present, call the login
# procedure with the present token and options.
#
# Returns the return value of <tt>login_procedure</tt> if a
# token is found. Returns <tt>nil</tt> if no token is found.
# Returns the return value of +login_procedure+ if a
# token is found. Returns +nil+ if no token is found.
#
# ==== Parameters
#
Expand Down

0 comments on commit 11a4f98

Please sign in to comment.