Module: ActionView::LookupContext::ViewPaths
- Defined in:
- lib/active_scaffold/extensions/action_view_rendering.rb
Instance Method Summary collapse
Instance Method Details
#find_all_templates(name, prefix = nil, partial = false) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/active_scaffold/extensions/action_view_rendering.rb', line 4 def find_all_templates(name, prefix = nil, partial = false) templates = [] @view_paths.each do |resolver| template = resolver.find_all(*args_for_lookup(name, prefix, partial)).first templates << template unless template.nil? end templates end |