Method: WithForm::ModelForm#uncheck
- Defined in:
- lib/with_form/model_form.rb
#uncheck(attribute, **options) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/with_form/model_form.rb', line 54 def uncheck(attribute, **) if attribute.kind_of? Symbol value = read_attribute(attribute) else value = attribute end Array(value).each { |value| scope_form.uncheck(value, **) } end |