fixed a commit that got reverted by accident

This commit is contained in:
Matt Aimonetti 2009-07-08 09:28:15 -07:00
parent baabe40674
commit 9a89db44f1

View file

@ -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