Class: YAAF::Form
- Inherits:
-
Object
- Object
- YAAF::Form
- Includes:
- ActiveModel::Attributes, ActiveModel::Attributes::Normalization, ActiveModel::Model, ActiveModel::Validations::Callbacks, ActiveRecord::Transactions
- Defined in:
- lib/yaaf/form.rb
Overview
Parent class for form objects
Instance Method Summary collapse
Instance Method Details
#save(options = {}) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/yaaf/form.rb', line 21 def save( = {}) save_form() rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, ActiveModel::ValidationError false end |
#save!(options = {}) ⇒ Object
30 31 32 |
# File 'lib/yaaf/form.rb', line 30 def save!( = {}) save_form() end |