Module: Tenacity::OrmExt::CouchRest::InstanceMethods
- Defined in:
- lib/tenacity/orm_ext/couchrest.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#_t_reload ⇒ Object
139 140 141 142 143 144 145 146 |
# File 'lib/tenacity/orm_ext/couchrest.rb', line 139 def _t_reload unless self.id.nil? new_doc = database.get(self.id) self.clear new_doc.each { |k,v| self[k] = new_doc[k] } end self end |
#_t_save_if_dirty(*args) ⇒ Object
148 149 150 |
# File 'lib/tenacity/orm_ext/couchrest.rb', line 148 def _t_save_if_dirty(*args) save(*args) end |