lib/couchpillow/document.rb in couchpillow-0.4.0 vs lib/couchpillow/document.rb in couchpillow-0.4.1

- old
+ new

@@ -54,13 +54,13 @@ # Save this document to the server # def save! whitelist! - validate! sort! timestamp! + validate! to_save = @data.merge({ :_type => self.class._type }) CouchPillow.db.set @id, to_save end @@ -76,13 +76,13 @@ # Attempt to update this Document. Fails if this Document does not yet # exist in the database. # def update! whitelist! - validate! sort! timestamp! + validate! to_save = @data.merge({ :_type => self.class._type }) CouchPillow.db.replace @id, to_save end @@ -96,10 +96,9 @@ hash.each do |k,v| @data[k.to_sym] = v end rename! whitelist! - validate! end def has? key @data.has_key?(key)