lib/action_view/renderer/abstract_renderer.rb
# Checks if the given path contains a format and if so, change
# the lookup context to take this new format into account.
Checks if the given path contains a format and if so, change
the lookup context to take this new format into account.
Checks if the given path contains a format and if so change the lookup context to take this new format into account .
def wrap_formats(value)
      return yield unless value.is_a?(String)
      if value.sub!(formats_regexp, "")
        update_details(:formats => [$1.to_sym]){ yield }
      else
        yield
      end
    end
def wrap_formats ( value ) return yield unless value . is_a? ( String ) if value . sub! ( formats_regexp , "" ) update_details ( :formats => [ $1 . to_sym ] ) { yield } else yield end end
Checks if the given path contains a format and if so, change
the lookup context to take this new format into account.
Checks if the given path contains a format and if so change the lookup context to take this new format into account .
value