module ActionController::StrongParameters

Public Instance Methods

params() click to toggle source

Returns a new ActionController::Parameters object that has been instantiated with the request.parameters.

# File lib/action_controller.rb, line 10
def params
  @_params ||= Parameters.new(request.parameters)
end
params=(value) click to toggle source

Assigns the given value to the params hash. If value is a Hash, this will create an ActionController::Parameters object that has been instantiated with the given value hash.

# File lib/action_controller.rb, line 17
def params=(value)
  @_params = value.is_a?(Hash) ? Parameters.new(value) : value
end