This method is deprecated or moved on the latest stable version.
The last existing version (v6.1.7.7) is shown here.
with_fallbacks()
public
Adds fallbacks to the view paths. Useful in cases when you are rendering a
:file.
# File actionview/lib/action_view/lookup_context.rb, line 147
def with_fallbacks
view_paths = build_view_paths((@view_paths.paths + self.class.fallbacks).uniq)
if block_given?
raise ArgumentError, <<~eowarn.squish
Calling `with_fallbacks` with a block is not supported. Call methods on
the lookup context returned by `with_fallbacks` instead.
eowarn
else
ActionView::LookupContext.new(view_paths, @details, @prefixes)
end
end