module Omnidata::Persistence
Public Instance Methods
destroy()
click to toggle source
# File lib/omnidata/persistence.rb, line 20 def destroy self.class.destroy(id) end
save()
click to toggle source
# File lib/omnidata/persistence.rb, line 11 def save if new_record? self.id = self.class.create(attributes) else self.class.update(id, attributes) end self end