lib/ripple/document/persistence.rb in ripple-0.8.2 vs lib/ripple/document/persistence.rb in ripple-0.8.3

- old
+ new

@@ -83,10 +83,10 @@ # Reloads the document from Riak # @return self def reload return self if new? robject.reload(:force => true) - @attributes.merge!(@robject.data) + @robject.data.except("_type").each { |key, value| send("#{key}=", value) } self end # Deletes the document from Riak and freezes this instance def destroy