module ActionView::LookupContext::ViewPaths
Public Instance Methods
find_all_templates(name, partial = false, locals = {})
click to toggle source
# File lib/active_scaffold/extensions/action_view_rendering.rb, line 5 def find_all_templates(name, partial = false, locals = {}) prefixes.collect do |prefix| @view_paths.collect do |resolver| if Rails::VERSION::MINOR == 1 temp_args = *args_for_lookup(name, [prefix], partial, locals) else temp_args = *args_for_lookup(name, [prefix], partial, locals, {}) end temp_args[1] = temp_args[1][0] resolver.find_all(*temp_args) end end.flatten! end