Module: ActionController::StrongParameters
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/action_controller/parameters.rb
Instance Method Summary collapse
Instance Method Details
#params ⇒ Object
240 241 242 |
# File 'lib/action_controller/parameters.rb', line 240 def params @_params ||= Parameters.new(request.parameters) end |
#params=(val) ⇒ Object
244 245 246 |
# File 'lib/action_controller/parameters.rb', line 244 def params=(val) @_params = val.is_a?(Hash) ? Parameters.new(val) : val end |