diff options
author | Rafael França <rafael@franca.dev> | 2019-07-26 14:16:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 14:16:45 -0400 |
commit | 0643dc44d5a61ad8a3bedb8bdf9b0f0840035607 (patch) | |
tree | fee4ad891f5ebd46d3916c85d959fbc3c90596ae /actionpack | |
parent | f825a9048fc98c9c964fe23b567e4d555b938d77 (diff) | |
parent | 04beaa78c5d0968b4c51faeeff151c6a11ee0bb4 (diff) | |
download | rails-0643dc44d5a61ad8a3bedb8bdf9b0f0840035607.tar.gz rails-0643dc44d5a61ad8a3bedb8bdf9b0f0840035607.tar.bz2 rails-0643dc44d5a61ad8a3bedb8bdf9b0f0840035607.zip |
Merge pull request #36779 from Shopify/optimize-url-helper-creation
Optimize Journey::Route#glob?
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/route.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/route.rb b/actionpack/lib/action_dispatch/journey/route.rb index 4aee7a6f83..9184676801 100644 --- a/actionpack/lib/action_dispatch/journey/route.rb +++ b/actionpack/lib/action_dispatch/journey/route.rb @@ -148,7 +148,7 @@ module ActionDispatch end def glob? - !path.spec.grep(Nodes::Star).empty? + path.spec.any?(Nodes::Star) end def dispatcher? |