Module: ActiveModel::FormObject::StrongParameters::ClassMethods
- Defined in:
- lib/active_model/form_object/strong_parameters.rb
Instance Method Summary collapse
Instance Method Details
#strong_parameters(parameter_name, opts = {}) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/active_model/form_object/strong_parameters.rb', line 11 def strong_parameters(parameter_name, opts = {}) if opts == {} opts = parameter_name parameter_name = :params end StrongParameters.new(self).set(parameter_name, opts) end |