diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-29 20:20:22 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-29 20:20:22 +0000 |
commit | 9f92dd39849c353b8a69401a93ba7b13f93d669f (patch) | |
tree | 115190ab4023a28f8dff3e54b42fa1c981bc7d14 /actionpack/lib/action_controller/benchmarking.rb | |
parent | 995167ec2eced73f44d4f961349dbbee6b297210 (diff) | |
download | rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.tar.gz rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.tar.bz2 rails-9f92dd39849c353b8a69401a93ba7b13f93d669f.zip |
Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/benchmarking.rb')
-rw-r--r-- | actionpack/lib/action_controller/benchmarking.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/benchmarking.rb b/actionpack/lib/action_controller/benchmarking.rb index a30212c8bd..8b548f9d25 100644 --- a/actionpack/lib/action_controller/benchmarking.rb +++ b/actionpack/lib/action_controller/benchmarking.rb @@ -8,11 +8,8 @@ module ActionController #:nodoc: base.extend(ClassMethods) base.class_eval do - alias_method :perform_action_without_benchmark, :perform_action - alias_method :perform_action, :perform_action_with_benchmark - - alias_method :render_without_benchmark, :render - alias_method :render, :render_with_benchmark + alias_method_chain :perform_action, :benchmark + alias_method_chain :render, :benchmark end end |