Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 marklazz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/callbacks.rb
4 activesupport/lib/active_support/callbacks.rb
View
@@ -459,12 +459,12 @@ def __update_callbacks(name, filters = [], block = nil) #:nodoc:
#
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.