lib/ohm.rb in ohm-0.1.1 vs lib/ohm.rb in ohm-0.1.2

- old
+ new

@@ -1716,19 +1716,20 @@ # @see file:README.html#connecting Ohm.connect options documentation. def self.connect(*options) self.db = Ohm.connection(*options) end - protected - attr_writer :id - # @return [Ohm::Key] A key scoped to the model which uses this object's # id. # # @see http://github.com/soveran/nest The Nest library. def key self.class.key[id] end + + protected + attr_writer :id + # Write all the attributes and counters of this object. The operation # is actually a 2-step process: # # 1. Delete the current key, e.g. Post:2.