From 01b0ccce32ffa9ed190072417a5da3e1f15322ed Mon Sep 17 00:00:00 2001
From: pavel <pavel.rosicky@easy.cz>
Date: Wed, 12 Dec 2018 22:29:29 +0100
Subject: use match?

---
 actionview/lib/action_view/template/resolver.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'actionview/lib')

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
-- 
cgit v1.2.3