diff options
author | Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | 2009-06-02 21:41:31 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local> | 2009-06-02 21:41:31 -0700 |
commit | 1126a85aed576402d978e6f76eb393b6baaa9541 (patch) | |
tree | ab98097c1b6b80730941c8589dc8eb48847f0339 /actionpack/lib | |
parent | 971e2438d98326c994ec6d3ef8e37b7e868ed6e2 (diff) | |
download | rails-1126a85aed576402d978e6f76eb393b6baaa9541.tar.gz rails-1126a85aed576402d978e6f76eb393b6baaa9541.tar.bz2 rails-1126a85aed576402d978e6f76eb393b6baaa9541.zip |
Further cleaning up new callbacks
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/abstract/callbacks.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/abstract/callbacks.rb b/actionpack/lib/action_controller/abstract/callbacks.rb index dd4213e847..fd7e5ebfda 100644 --- a/actionpack/lib/action_controller/abstract/callbacks.rb +++ b/actionpack/lib/action_controller/abstract/callbacks.rb @@ -45,19 +45,19 @@ module AbstractController class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{filter}_filter(*names, &blk) _insert_callbacks(names, blk) do |name, options| - _set_callback(:process_action, :#{filter}, name, options) + set_callback(:process_action, :#{filter}, name, options) end end def prepend_#{filter}_filter(*names, &blk) _insert_callbacks(names, blk) do |name, options| - _set_callback(:process_action, :#{filter}, name, options.merge(:prepend => true)) + set_callback(:process_action, :#{filter}, name, options.merge(:prepend => true)) end end def skip_#{filter}_filter(*names, &blk) _insert_callbacks(names, blk) do |name, options| - _skip_callback(:process_action, :#{filter}, name, options) + skip_callback(:process_action, :#{filter}, name, options) end end |