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|
|
self.class.properties.each do |property|
|
||||||
key = property.name.to_s
|
key = property.name.to_s
|
||||||
# let's make sure we have a default
|
# let's make sure we have a default
|
||||||
if property.default
|
unless property.default.nil?
|
||||||
if property.default.class == Proc
|
if property.default.class == Proc
|
||||||
self[key] = property.default.call
|
self[key] = property.default.call
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue