module ActionView::ViewPaths
Public Instance Methods
# File actionview/lib/action_view/view_paths.rb, line 49 def append_view_path(path) lookup_context.view_paths.push(*path) end
# File actionview/lib/action_view/view_paths.rb, line 45
def details_for_lookup
{ }
end # File actionview/lib/action_view/view_paths.rb, line 40
def lookup_context
@_lookup_context ||=
ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes)
end LookupContext is the object responsible for holding all information required for looking up templates, i.e. view paths and details. Check ActionView::LookupContext for more information.
# File actionview/lib/action_view/view_paths.rb, line 53 def prepend_view_path(path) lookup_context.view_paths.unshift(*path) end
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.