Module: ActionController::StrongParameters

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

Instance Method Summary collapse

Instance Method Details

#paramsObject



133
134
135
# File 'lib/action_controller/parameters.rb', line 133

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

#params=(val) ⇒ Object



137
138
139
# File 'lib/action_controller/parameters.rb', line 137

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