instance method
_process_options
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
_process_options(options)
Process controller specific options, as status, content-type and location.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 117
def _process_options(options)
status, content_type, location = options.values_at(:status, :content_type, :location)
self.status = status if status
self.content_type = content_type if content_type
headers["Location"] = url_for(location) if location
super
end
Defined in actionpack/lib/action_controller/metal/rendering.rb line 117
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rendering