Class: ActionView::NullResolver

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

Constant Summary

Constants inherited from PathResolver

PathResolver::DEFAULT_PATTERN, PathResolver::EXTENSIONS

Instance Method Summary collapse

Methods inherited from PathResolver

#initialize

Methods inherited from Resolver

#clear_cache, #find_all, #initialize

Constructor Details

This class inherits a constructor from ActionView::PathResolver

Instance Method Details

#query(path, exts, formats) ⇒ Object



47
48
49
50
# File 'actionview/lib/action_view/testing/resolvers.rb', line 47

def query(path, exts, formats)
  handler, format, variant = extract_handler_and_format_and_variant(path, formats)
  [ActionView::Template.new("Template generated by Null Resolver", path, handler, :virtual_path => path, :format => format, :variant => variant)]
end