Method: WithForm::ModelForm#uncheck
- Defined in:
- lib/with_form/model_form.rb
#uncheck(attribute, **options) ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/with_form/model_form.rb', line 56 def uncheck(attribute, **) case attribute when Symbol values = Array(@model.public_send(attribute)) else values = Array(attribute) end values.each { |value| scope_form.uncheck(value, **) } end |