Module: ActionController::RememberingStrongParameters

Extended by:
ActiveSupport::Concern
Defined in:
lib/action_controller/parameters.rb

Instance Method Summary collapse

Instance Method Details

#paramsObject



239
240
241
# File 'lib/action_controller/parameters.rb', line 239

def params
  @_params ||= Parameters.new(request.parameters)
end

#params=(val) ⇒ Object



243
244
245
# File 'lib/action_controller/parameters.rb', line 243

def params=(val)
  @_params = val.is_a?(Hash) ? Parameters.new(val) : val
end