Fixes Model.new(nil) with attribute protection. GH issue #8

Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
This commit is contained in:
Will Leinweber 2010-08-20 15:57:03 -05:00 committed by Marcos Tapajós
parent b20bfad11f
commit 62f4f72cab
2 changed files with 6 additions and 1 deletions

View file

@ -54,7 +54,7 @@ module CouchRest
attributes.reject! do |property_name, property_value|
protected_names.include?(property_name.to_s)
end
end if attributes
attributes || {}
end