module ActionView::ViewPaths

Public Instance Methods

append_view_path(path) Show source
# File actionview/lib/action_view/view_paths.rb, line 67
def append_view_path(path)
  lookup_context.view_paths.push(*path)
end
details_for_lookup() Show source
# File actionview/lib/action_view/view_paths.rb, line 63
def details_for_lookup
  { }
end
lookup_context() Show source
# File actionview/lib/action_view/view_paths.rb, line 58
def lookup_context
  @_lookup_context ||=
    ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes)
end

LookupContext is the object responsible to hold all information required to lookup templates, i.e. view paths and details. Check ActionView::LookupContext for more information.

prepend_view_path(path) Show source
# File actionview/lib/action_view/view_paths.rb, line 71
def prepend_view_path(path)
  lookup_context.view_paths.unshift(*path)
end

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.