class ActionView::LookupContext
def formats=(values)
Override formats= to expand ["*/*"] values and automatically
def formats=(values) if values values.concat(default_formats) if values.delete "*/*" if values == [:js] values << :html @html_fallback_for_js = true end end super(values) end