aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-22 15:40:15 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-22 15:40:15 -0300
commit35c160066aea1f0ded952da0f3f9e78b61c38507 (patch)
tree6f8258ada6f1cd04a2c522b78aed0b1424d570c5 /actionpack/lib/action_dispatch/journey
parentd0f0fcf2e9e84e7d3d34028211c421f382821563 (diff)
parentee92c61689dd2cd0700d136385a3d2616c993e10 (diff)
downloadrails-35c160066aea1f0ded952da0f3f9e78b61c38507.tar.gz
rails-35c160066aea1f0ded952da0f3f9e78b61c38507.tar.bz2
rails-35c160066aea1f0ded952da0f3f9e78b61c38507.zip
Merge pull request #15252 from DNNX/formatter-refactoring-2
Remove unnecessary `Hash#to_a` call
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r--actionpack/lib/action_dispatch/journey/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/formatter.rb b/actionpack/lib/action_dispatch/journey/formatter.rb
index 4ed74225f7..45feab0056 100644
--- a/actionpack/lib/action_dispatch/journey/formatter.rb
+++ b/actionpack/lib/action_dispatch/journey/formatter.rb
@@ -80,7 +80,7 @@ module ActionDispatch
if named_routes.key?(name)
yield named_routes[name]
else
- routes = non_recursive(cache, options.to_a)
+ routes = non_recursive(cache, options)
hash = routes.group_by { |_, r| r.score(options) }