aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorpavel <pavel.rosicky@easy.cz>2018-12-12 22:29:29 +0100
committerpavel <pavel.rosicky@easy.cz>2018-12-12 23:29:53 +0100
commit01b0ccce32ffa9ed190072417a5da3e1f15322ed (patch)
tree6c43c6eae2964faf46ddd79703e0e4bef4084d14 /actionview
parent3a3a3d607eb2f706c117926015d2cb6ef6599ded (diff)
downloadrails-01b0ccce32ffa9ed190072417a5da3e1f15322ed.tar.gz
rails-01b0ccce32ffa9ed190072417a5da3e1f15322ed.tar.bz2
rails-01b0ccce32ffa9ed190072417a5da3e1f15322ed.zip
use match?
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/template/resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb
index 08dd6fb510..12ae82f8c5 100644
--- a/actionview/lib/action_view/template/resolver.rb
+++ b/actionview/lib/action_view/template/resolver.rb
@@ -378,7 +378,7 @@ module ActionView
# This regex match does double duty of finding only files which match
# details (instead of just matching the prefix) and also filtering for
# case-insensitive file systems.
- !filename.match(regex) ||
+ !regex.match?(filename) ||
File.directory?(filename)
end.sort_by do |filename|
# Because we scanned the directory, instead of checking for files