diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-15 23:32:45 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-26 19:21:14 +0200 |
commit | a6509d31126d3533689480a5290f518671d5d8c9 (patch) | |
tree | 2a4ae12f52013563dd3520c45f75e836dbe1179c /actionview/lib/action_view/path_set.rb | |
parent | cdc32defcfc2ce5312c4b02e09f6cef2172843c6 (diff) | |
download | rails-a6509d31126d3533689480a5290f518671d5d8c9.tar.gz rails-a6509d31126d3533689480a5290f518671d5d8c9.tar.bz2 rails-a6509d31126d3533689480a5290f518671d5d8c9.zip |
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) |