Commits

Anonymous committed f67d8d2

Don't include "_type" since we don't have a setter for it.

Comments (0)

Files changed (1)

ripple/lib/ripple/document/finders.rb

           klass = robject.data['_type'].constantize rescue self
           klass.new.tap do |doc|
             doc.key = robject.key
-            robject.data.each {|k,v| doc.send("#{k}=", v) } rescue nil
+            robject.data.except("_type").each {|k,v| doc.send("#{k}=", v) } rescue nil
             doc.instance_variable_set(:@new, false)
             doc.instance_variable_set(:@robject, robject)
           end