diff options
author | Marcin Olichwirowicz <olichwirowicz@gmail.com> | 2015-08-13 00:56:29 +0200 |
---|---|---|
committer | Marcin Olichwirowicz <olichwirowicz@gmail.com> | 2015-08-13 00:56:29 +0200 |
commit | 0c15b85d5d0fada21306ec6da8b2bb0470fefc68 (patch) | |
tree | 488f5a99da476982f1bf16049e71e7724b2e71db /actionpack/lib | |
parent | 1c9431753939b9987416debf839d5707efe4dc18 (diff) | |
download | rails-0c15b85d5d0fada21306ec6da8b2bb0470fefc68.tar.gz rails-0c15b85d5d0fada21306ec6da8b2bb0470fefc68.tar.bz2 rails-0c15b85d5d0fada21306ec6da8b2bb0470fefc68.zip |
Avoid unnecessary MatchData objects
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_redirect.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_redirect.rb b/actionpack/lib/action_dispatch/http/filter_redirect.rb index bf79963351..6ced03ab2c 100644 --- a/actionpack/lib/action_dispatch/http/filter_redirect.rb +++ b/actionpack/lib/action_dispatch/http/filter_redirect.rb @@ -28,7 +28,7 @@ module ActionDispatch if String === filter location.include?(filter) elsif Regexp === filter - location.match(filter) + location =~ filter end end end |