diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-15 01:19:09 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-15 11:29:31 -0200 |
commit | 3f2bf0dbe988db27843c87dd81b24500d8160372 (patch) | |
tree | ceb394dc2b7b8b902cd656f118fef5bbbf0600a3 /actionpack | |
parent | 5f00f137246752fc34b1fdc416e6de975401337f (diff) | |
download | rails-3f2bf0dbe988db27843c87dd81b24500d8160372.tar.gz rails-3f2bf0dbe988db27843c87dd81b24500d8160372.tar.bz2 rails-3f2bf0dbe988db27843c87dd81b24500d8160372.zip |
Get rid of useless temp variable
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 7c2bec32dc..a537ed09b8 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -195,8 +195,7 @@ module ActionDispatch end if via = options[:via] - list = Array(via).map { |m| m.to_s.dasherize.upcase } - @conditions[:request_method] = list + @conditions[:request_method] = Array(via).map { |m| m.to_s.dasherize.upcase } end end |