Class: ActionView::NullResolver
- Inherits:
-
PathResolver
- Object
- Resolver
- PathResolver
- ActionView::NullResolver
- Defined in:
- 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
Methods inherited from Resolver
#clear_cache, #find_all, #find_all_anywhere, #initialize
Constructor Details
This class inherits a constructor from ActionView::PathResolver
Instance Method Details
#query(path, exts, formats, _) ⇒ Object
47 48 49 50 |
# File '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 |