Class: ActionView::NullResolver

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

Constant Summary

Constants inherited from PathResolver

PathResolver::EXTENSION_ORDER

Instance Method Summary collapse

Methods inherited from PathResolver

#to_s

Methods inherited from Resolver

#clear_cache, #find_all, #initialize

Constructor Details

This class inherits a constructor from ActionView::Resolver

Instance Method Details

#query(path, exts, formats) ⇒ Object


36
37
38
39
# File 'lib/action_view/testing/resolvers.rb', line 36

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