instance method _process_format

Ruby on Rails 4.1.16

Since v4.1.16 Last seen in v4.2.9 Private

Available in: v4.1.16 v4.2.9

Signature

_process_format(format, options = {})

No documentation comment.

Parameters

format req
options opt = {}
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 45
    def _process_format(format, options = {})
      super

      if options[:plain]
        self.content_type = Mime::TEXT
      else
        self.content_type ||= format.to_s
      end
    end

Defined in actionpack/lib/action_controller/metal/rendering.rb line 45 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Rendering

Type at least 2 characters to search.

↑↓ navigate · open · esc close