Method: CouchbaseOrm::Persistence#persisted?
- Defined in:
- lib/couchbase-orm/persistence.rb
#persisted? ⇒ Boolean Also known as: exists?
Returns true if the record is persisted, i.e. it’s not a new record and it was not destroyed, otherwise returns false.
77 78 79 |
# File 'lib/couchbase-orm/persistence.rb', line 77 def persisted? !new_record? && !destroyed? end |