diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-22 14:03:24 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-22 14:03:24 -0300 |
commit | d0f0fcf2e9e84e7d3d34028211c421f382821563 (patch) | |
tree | 214f25eea4c313171960f7d9c7636d61c36e38c6 /actionpack/lib/action_dispatch | |
parent | b343e310970f2dbbee76691bd4ef78983578e9be (diff) | |
parent | eba8b70d4ec7239694b026bef3c07e5ad82efe69 (diff) | |
download | rails-d0f0fcf2e9e84e7d3d34028211c421f382821563.tar.gz rails-d0f0fcf2e9e84e7d3d34028211c421f382821563.tar.bz2 rails-d0f0fcf2e9e84e7d3d34028211c421f382821563.zip |
Merge pull request #15247 from DNNX/activesupport-formatter-refactoring
Use `break` instead of `next` in AD::Journey::Formatter#match_route
Diffstat (limited to 'actionpack/lib/action_dispatch')
-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 7eaf8e49ce..4ed74225f7 100644 --- a/actionpack/lib/action_dispatch/journey/formatter.rb +++ b/actionpack/lib/action_dispatch/journey/formatter.rb @@ -85,7 +85,7 @@ module ActionDispatch hash = routes.group_by { |_, r| r.score(options) } hash.keys.sort.reverse_each do |score| - next if score < 0 + break if score < 0 hash[score].sort_by { |i, _| i }.each do |_, route| yield route |