Merge branch 'master' of github.com:couchrest/couchrest_model into adv_design
This commit is contained in:
commit
f58482553c
10 changed files with 75 additions and 41 deletions
|
@ -32,7 +32,7 @@ module CouchRest
|
|||
end
|
||||
|
||||
if docs.length > 0
|
||||
document.errors.add(attribute, :taken, :default => options[:message], :value => value)
|
||||
document.errors.add(attribute, :taken, options.merge(:value => value))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue