fixed a commit that got reverted by accident
This commit is contained in:
parent
baabe40674
commit
9a89db44f1
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module CouchRest
|
|||
self.class.properties.each do |property|
|
||||
key = property.name.to_s
|
||||
# let's make sure we have a default
|
||||
if property.default
|
||||
unless property.default.nil?
|
||||
if property.default.class == Proc
|
||||
self[key] = property.default.call
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue