Class: ActionView::NullResolver
- Defined in:
- lib/action_view/testing/resolvers.rb
Constant Summary
Constants inherited from Resolver
Instance Method Summary collapse
Methods inherited from Resolver
#all_template_paths, #clear_cache, #find_all
Instance Method Details
#find_templates(name, prefix, partial, details, locals = []) ⇒ Object
38 39 40 41 42 |
# File 'lib/action_view/testing/resolvers.rb', line 38 def find_templates(name, prefix, partial, details, locals = []) path = TemplatePath.build(name, prefix, partial) handler = ActionView::Template::Handlers::Raw [ActionView::Template.new("Template generated by Null Resolver", path.virtual, handler, virtual_path: path.virtual, format: nil, variant: nil, locals: locals)] end |