diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-20 15:12:38 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-20 15:12:38 +0100 |
commit | 6c57177f2c7f4f934716d588545902d5fc00fa99 (patch) | |
tree | dd5fe4b2e1ab708fdc9aa4324ca382de87da9cf3 /actionpack/lib/action_dispatch/routing | |
parent | cae1768c6a0e3d1cd4a2c2d836ef213438689db6 (diff) | |
download | rails-6c57177f2c7f4f934716d588545902d5fc00fa99.tar.gz rails-6c57177f2c7f4f934716d588545902d5fc00fa99.tar.bz2 rails-6c57177f2c7f4f934716d588545902d5fc00fa99.zip |
Remove deprecation warnings from Action Pack.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/redirection.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/lib/action_dispatch/routing/redirection.rb b/actionpack/lib/action_dispatch/routing/redirection.rb index 330400e139..617b24b46a 100644 --- a/actionpack/lib/action_dispatch/routing/redirection.rb +++ b/actionpack/lib/action_dispatch/routing/redirection.rb @@ -97,16 +97,7 @@ module ActionDispatch } if String === path block = path if path.respond_to? :call - - # :FIXME: remove in Rails 4.0 - if block && block.respond_to?(:arity) && block.arity < 2 - msg = "redirect blocks with arity of #{block.arity} are deprecated. Your block must take 2 parameters: the environment, and a request object" - ActiveSupport::Deprecation.warn msg - block = lambda { |params, _| block.call(params) } - end - raise ArgumentError, "redirection argument not supported" unless block - Redirect.new status, block end end |