Method: WithForm::ModelForm#unselect
- Defined in:
- lib/with_form/model_form.rb
#unselect(attribute, from: nil, **options) ⇒ Object
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/with_form/model_form.rb', line 78 def unselect(attribute, from: nil, **) case attribute when Symbol value = @model.public_send(attribute) else value = attribute end scope_form.unselect value, from: from || attribute, ** end |