Method: MotionPrime::ModelAssociationMixin#save!
- Defined in:
- motion-prime/models/_association_mixin.rb
#save! ⇒ Prime::Model
Saves model and all associations to store.
25 26 27 28 29 30 31 32 |
# File 'motion-prime/models/_association_mixin.rb', line 25 def save! _bags.values.each do |bag| bag.save# unless bag.store end super rescue StoreError => e raise e if Prime.env.development? end |