diff options
author | Marcelo Giorgi <marklazz.uy@gmail.com> | 2010-10-03 20:54:08 -0200 |
---|---|---|
committer | Marcelo Giorgi <marklazz.uy@gmail.com> | 2010-10-03 20:54:08 -0200 |
commit | 860d7c566bd3041069c5763559341a1b6a2a1305 (patch) | |
tree | 2cc99c04dc488fe8a709eafa540345154e9da027 /activesupport/lib | |
parent | a72edab3b319ebada1d674a6b2fdcf46ad62fbdb (diff) | |
download | rails-860d7c566bd3041069c5763559341a1b6a2a1305.tar.gz rails-860d7c566bd3041069c5763559341a1b6a2a1305.tar.bz2 rails-860d7c566bd3041069c5763559341a1b6a2a1305.zip |
Correct documentation that references how *_filter of action_pack are translated into set_callback/run_callback's (from active_support) invocations.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 0c1d46c7ec..8f8def5922 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -459,12 +459,12 @@ module ActiveSupport # # becomes # - # dispatch_callback :before, :authenticate, :per_key => {:unless => proc {|c| c.action_name == "index"}} + # set_callback :process_action, :before, :authenticate, :per_key => {:unless => proc {|c| c.action_name == "index"}} # # Per-Key conditions are evaluated only once per use of a given key. # In the case of the above example, you would do: # - # run_callbacks(:dispatch, action_name) { ... dispatch stuff ... } + # run_callbacks(:process_action, action_name) { ... dispatch stuff ... } # # In that case, each action_name would get its own compiled callback # method that took into consideration the per_key conditions. This |