Module: ActionController::StrongParameters

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

Instance Method Summary collapse

Instance Method Details

#paramsObject


230
231
232
# File 'lib/action_controller/parameters.rb', line 230

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

#params=(val) ⇒ Object


234
235
236
# File 'lib/action_controller/parameters.rb', line 234

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