diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-27 20:27:57 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-27 20:27:57 +0200 |
commit | c5583cd79c17a56eafdf2666a136694125ec7485 (patch) | |
tree | 4856d80bce7ddfadd965790ffefeea458b1bf9b2 /actionview/lib/action_view/path_set.rb | |
parent | 0a780b1e8527c7d1bc764d6b6423966ff0381af4 (diff) | |
parent | a6509d31126d3533689480a5290f518671d5d8c9 (diff) | |
download | rails-c5583cd79c17a56eafdf2666a136694125ec7485.tar.gz rails-c5583cd79c17a56eafdf2666a136694125ec7485.tar.bz2 rails-c5583cd79c17a56eafdf2666a136694125ec7485.zip |
Merge pull request #20904 from kaspth/wildcard-template-dependencies
Add wildcard template dependencies.
Diffstat (limited to 'actionview/lib/action_view/path_set.rb')
-rw-r--r-- | actionview/lib/action_view/path_set.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionview/lib/action_view/path_set.rb b/actionview/lib/action_view/path_set.rb index 91ee2ea8f5..7a88f6bc50 100644 --- a/actionview/lib/action_view/path_set.rb +++ b/actionview/lib/action_view/path_set.rb @@ -61,6 +61,15 @@ module ActionView #:nodoc: find_all(path, prefixes, *args).any? end + def find_all_with_query(query) # :nodoc: + paths.each do |resolver| + templates = resolver.find_all_with_query(query) + return templates unless templates.empty? + end + + [] + end + private def typecast(paths) |