method
extract_format
v3.2.1 -
Show latest stable
- Class:
ActionView::AbstractRenderer
extract_format(value, details)protected
No documentation available.
# File actionpack/lib/action_view/renderer/abstract_renderer.rb, line 25
def extract_format(value, details)
if value.is_a?(String) && value.sub!(formats_regexp, "")
ActiveSupport::Deprecation.warn "Passing the format in the template name is deprecated. " "Please pass render with :formats => [:#{$1}] instead.", caller
details[:formats] ||= [$1.to_sym]
end
end