Module: Ardm::Ar::Persistence::ClassMethods
- Defined in:
- lib/ardm/ar/persistence.rb
Instance Method Summary collapse
Instance Method Details
#destroy(*a) ⇒ Object
28 29 30 |
# File 'lib/ardm/ar/persistence.rb', line 28 def destroy(*a) destroy_all end |
#destroy!(*a) ⇒ Object
32 33 34 |
# File 'lib/ardm/ar/persistence.rb', line 32 def destroy!(*a) delete_all end |
#update(*a) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ardm/ar/persistence.rb', line 14 def update(*a) = dump_properties_hash(a.first) = dump_associations_hash() assert_valid_attributes() update_all() != 0 end |
#update!(*a) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/ardm/ar/persistence.rb', line 21 def update!(*a) = dump_properties_hash(a.first) = dump_associations_hash() assert_valid_attributes() update_all() != 0 end |