Class: ActionView::NullResolver

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

Constant Summary

Constants inherited from 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

- (Object) query(path, exts, formats)



36
37
38
39
# File 'actionpack/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