Fixes Model.new(nil) with attribute protection. GH issue #8
Signed-off-by: Marcos Tapajós <tapajos@gmail.com>
This commit is contained in:
parent
b20bfad11f
commit
62f4f72cab
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue