module ActionController::StrongParameters
def params
Returns a new ActionController::Parameters object that
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
def params=(value)
is a Hash, this will create an ActionController::Parameters
Assigns the given +value+ to the +params+ hash. If +value+
def params=(value) @_params = value.is_a?(Hash) ? Parameters.new(value) : value end