Skip to content
This repository
Browse code

Correct documentation that references how *_filter of action_pack are…

… translated into set_callback/run_callback's (from active_support) invocations.
  • Loading branch information...
commit 860d7c566bd3041069c5763559341a1b6a2a1305 1 parent a72edab
marklazz authored October 03, 2010
4  activesupport/lib/active_support/callbacks.rb
@@ -459,12 +459,12 @@ def __update_callbacks(name, filters = [], block = nil) #:nodoc:
459 459
       #
460 460
       # becomes
461 461
       #
462  
-      #   dispatch_callback :before, :authenticate, :per_key => {:unless => proc {|c| c.action_name == "index"}}
  462
+      #   set_callback :process_action, :before, :authenticate, :per_key => {:unless => proc {|c| c.action_name == "index"}}
463 463
       #
464 464
       # Per-Key conditions are evaluated only once per use of a given key.
465 465
       # In the case of the above example, you would do:
466 466
       #
467  
-      #   run_callbacks(:dispatch, action_name) { ... dispatch stuff ... }
  467
+      #   run_callbacks(:process_action, action_name) { ... dispatch stuff ... }
468 468
       #
469 469
       # In that case, each action_name would get its own compiled callback
470 470
       # method that took into consideration the per_key conditions. This

0 notes on commit 860d7c5

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