1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge branch 'master' of github.com:lifo/docrails

This commit is contained in:
Nicholas E. May (on Enterprise) 2010-10-03 18:06:22 -05:00
commit 66559107e1

View file

@ -459,12 +459,12 @@ module ActiveSupport
# #
# becomes # 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. # Per-Key conditions are evaluated only once per use of a given key.
# In the case of the above example, you would do: # 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 # In that case, each action_name would get its own compiled callback
# method that took into consideration the per_key conditions. This # method that took into consideration the per_key conditions. This