Method: ROM::Model::Form#save
- Defined in:
- lib/rom/rails/model/form.rb
#save(*args) ⇒ self
Save a form by calling commit! and memoizing result
113 114 115 116 117 118 119 120 |
# File 'lib/rom/rails/model/form.rb', line 113 def save(*args) @errors.clear @result = commit!(*args) @errors.set @result.error if result.respond_to? :error self end |