instance method
_wrapper_enabled?
Ruby on Rails 5.0.7.2
Since v3.1.12 Last seen in v5.1.7 Private — implementation detail, not part of the public APISignature
_wrapper_enabled?()
Checks if we should perform parameters wrapping.
Source
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 278
def _wrapper_enabled?
return false unless request.has_content_type?
ref = request.content_mime_type.ref
_wrapper_formats.include?(ref) && _wrapper_key && !request.request_parameters.key?(_wrapper_key)
end
Defined in actionpack/lib/action_controller/metal/params_wrapper.rb line 278
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::ParamsWrapper