georgepalmer-couch_foo 0.7.10 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/couch_foo/base.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/couch_foo/base.rb
CHANGED
@@ -1697,7 +1697,7 @@ module CouchFoo
|
|
1697
1697
|
|
1698
1698
|
def clone
|
1699
1699
|
attrs = clone_attributes(:read_attribute_before_type_cast)
|
1700
|
-
attributes_protected_by_default.each {|a| attrs.delete(a)}
|
1700
|
+
attributes_protected_by_default.each {|a| attrs.delete(a) unless a == "ruby_class"}
|
1701
1701
|
record = self.class.new
|
1702
1702
|
record.send :instance_variable_set, '@attributes', attrs
|
1703
1703
|
record
|