module ActionView::LookupContext::ViewPaths
def with_fallbacks
Adds fallbacks to the view paths. Useful in cases when you are rendering
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