instance method
_process_format
Ruby on Rails 4.2.9
Since v4.1.16 Last seen in v4.2.9 PrivateAvailable in: v4.1.16 v4.2.9
Signature
_process_format(format, options = {})
No documentation comment.
Parameters
-
formatreq -
optionsopt = {}
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