Module: ActionController::StrongParameters

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

Instance Method Summary collapse

Instance Method Details

#paramsObject



153
154
155
# File 'lib/action_controller/parameters.rb', line 153

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

#params=(val) ⇒ Object



157
158
159
# File 'lib/action_controller/parameters.rb', line 157

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