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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/couch_foo/base.rb +1 -1
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 10
4
+ :patch: 11
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: georgepalmer-couch_foo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Palmer