Make deep clone of default property values
This commit is contained in:
parent
83b70ec080
commit
b5a2307a95
2 changed files with 10 additions and 2 deletions
|
@ -58,8 +58,8 @@ module CouchRest::Model
|
|||
if default.class == Proc
|
||||
default.call
|
||||
else
|
||||
# Marshal.load(Marshal.dump(default)) # Removed as there are no failing tests and caused mutex errors
|
||||
default
|
||||
# TODO identify cause of mutex errors
|
||||
Marshal.load(Marshal.dump(default))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue