method
prepend_formats
v4.2.9 -
Show latest stable
- Class:
ActionView::AbstractRenderer
prepend_formats(formats)protected
No documentation available.
# File actionview/lib/action_view/renderer/abstract_renderer.rb, line 42
def prepend_formats(formats)
formats = Array(formats)
return if formats.empty? || @lookup_context.html_fallback_for_js
@lookup_context.formats = formats | @lookup_context.formats
end