Skip to content
This repository
Browse code

fixed http token authentication formatting

  • Loading branch information...
commit 595b8bc8f87d4400b1f83882bf079cacd265a9b4 1 parent 07d3466
Kuba Kuźma authored June 12, 2012
21  actionpack/lib/action_controller/metal/http_authentication.rb
@@ -401,16 +401,21 @@ def request_http_token_authentication(realm = "Application")
401 401
         end
402 402
       end
403 403
 
404  
-      # If token Authorization header is present, call the login procedure with
405  
-      # the present token and options.
  404
+      # If token Authorization header is present, call the login
  405
+      # procedure with the present token and options.
406 406
       #
407  
-      # controller      - ActionController::Base instance for the current request.
408  
-      # login_procedure - Proc to call if a token is present. The Proc should
409  
-      #                   take 2 arguments:
410  
-      #                     authenticate(controller) { |token, options| ... }
  407
+      # [controller]
  408
+      #   ActionController::Base instance for the current request.
411 409
       #
412  
-      # Returns the return value of `&login_procedure` if a token is found.
413  
-      # Returns nil if no token is found.
  410
+      # [login_procedure]
  411
+      #   Proc to call if a token is present. The Proc should take 2
  412
+      #   arguments:
  413
+      #
  414
+      #     authenticate(controller) { |token, options| ... }
  415
+      #
  416
+      # Returns the return value of <tt>login_procedure</tt> if a
  417
+      # token is found. Returns <tt>nil</tt> if no token is found.
  418
+
414 419
       def authenticate(controller, &login_procedure)
415 420
         token, options = token_and_options(controller.request)
416 421
         unless token.blank?

0 notes on commit 595b8bc

Please sign in to comment.
Something went wrong with that request. Please try again.