Flowdock
method

extract_format

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: AbstractRenderer
extract_format(value, details) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.