diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-19 19:45:22 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-19 19:45:22 +0100 |
commit | 08d6eb6824fbab64f4b0578a9ce6f7fd7213f3c7 (patch) | |
tree | 0dd49e2170ffd65d901fe8a3431a87836bdd9ad5 /actionpack/lib/action_controller | |
parent | ff813dc385aaa81be7b33c6960e8d078733493ab (diff) | |
download | rails-08d6eb6824fbab64f4b0578a9ce6f7fd7213f3c7.tar.gz rails-08d6eb6824fbab64f4b0578a9ce6f7fd7213f3c7.tar.bz2 rails-08d6eb6824fbab64f4b0578a9ce6f7fd7213f3c7.zip |
Do not deprecate performed?
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_controller/metal/compatibility.rb | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index 125dbf6bb5..9b0c8e0ce3 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -192,6 +192,10 @@ module ActionController super body end + def performed? + response_body + end + def dispatch(name, request) #:nodoc: @_request = request @_env = request.env diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb index 7b73f86584..de3354d4f9 100644 --- a/actionpack/lib/action_controller/metal/compatibility.rb +++ b/actionpack/lib/action_controller/metal/compatibility.rb @@ -60,11 +60,5 @@ module ActionController def method_for_action(action_name) super || (respond_to?(:method_missing) && "_handle_method_missing") end - - def performed? - ActiveSupport::Deprecation.warn "Calling `performed?` is deprecated and will " \ - "be removed in Rails 4.0. Please check for `response_body` presence instead.", caller - response_body - end end end |