instance method
params
Ruby on Rails 8.0.4
Since v4.0.13Signature
params()
Returns a new ActionController::Parameters object that has been instantiated with the request.parameters.
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1511
def params
@_params ||= begin
context = {
controller: self.class.name,
action: action_name,
request: request,
params: request.filtered_parameters
}
Parameters.new(request.parameters, context)
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 1511
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::StrongParameters