diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 16:03:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 16:03:09 -0700 |
commit | ba552764344bc0a3c25b8576ec11f127ceaa16da (patch) | |
tree | e78fb72f5ca735e1e4c0956d79960761fff4f942 /actionpack/lib/abstract_controller | |
parent | 4c628e48a56920877948bd9d69d3e3caa41b5da8 (diff) | |
download | rails-ba552764344bc0a3c25b8576ec11f127ceaa16da.tar.gz rails-ba552764344bc0a3c25b8576ec11f127ceaa16da.tar.bz2 rails-ba552764344bc0a3c25b8576ec11f127ceaa16da.zip |
deprecating string based terminators
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/callbacks.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/callbacks.rb b/actionpack/lib/abstract_controller/callbacks.rb index 599fff81c2..19cfd7dae1 100644 --- a/actionpack/lib/abstract_controller/callbacks.rb +++ b/actionpack/lib/abstract_controller/callbacks.rb @@ -8,7 +8,9 @@ module AbstractController include ActiveSupport::Callbacks included do - define_callbacks :process_action, :terminator => "response_body", :skip_after_callbacks_if_terminated => true + define_callbacks :process_action, + terminator: ->(controller,_) { controller.response_body }, + skip_after_callbacks_if_terminated: true end # Override AbstractController::Base's process_action to run the |