Method: ActionController::StrongParameters#params
- Defined in:
- actionpack/lib/action_controller/metal/strong_parameters.rb
#params ⇒ Object
Returns a new ActionController::Parameters object that has been instantiated with the request.parameters.
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 1514 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 |