module Ardm::Ar::Persistence::ClassMethods
Public Instance Methods
destroy(*a)
click to toggle source
# File lib/ardm/ar/persistence.rb, line 28 def destroy(*a) destroy_all end
destroy!(*a)
click to toggle source
# File lib/ardm/ar/persistence.rb, line 32 def destroy!(*a) delete_all end
update(*a)
click to toggle source
# File lib/ardm/ar/persistence.rb, line 14 def update(*a) options = dump_properties_hash(a.first) options = dump_associations_hash(options) assert_valid_attributes(options) update_all(options) != 0 end
update!(*a)
click to toggle source
# File lib/ardm/ar/persistence.rb, line 21 def update!(*a) options = dump_properties_hash(a.first) options = dump_associations_hash(options) assert_valid_attributes(options) update_all(options) != 0 end