diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-22 15:40:15 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-22 15:40:15 -0300 |
commit | 35c160066aea1f0ded952da0f3f9e78b61c38507 (patch) | |
tree | 6f8258ada6f1cd04a2c522b78aed0b1424d570c5 /actionpack/lib/action_dispatch/journey | |
parent | d0f0fcf2e9e84e7d3d34028211c421f382821563 (diff) | |
parent | ee92c61689dd2cd0700d136385a3d2616c993e10 (diff) | |
download | rails-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.rb | 2 |
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) } |