Class: ActionView::NullResolver

Inherits:
Resolver show all
Defined in:
actionview/lib/action_view/testing/resolvers.rb

Instance Method Summary collapse

Methods inherited from Resolver

#all_template_paths, #built_templates, #clear_cache, #find_all

Methods included from ActiveSupport::Deprecation::DeprecatedConstantAccessor

included

Instance Method Details

#find_templates(name, prefix, partial, details, locals = []) ⇒ Object



38
39
40
41
42
# File 'actionview/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