Permalink
Browse files

improve sql condition

  • Loading branch information...
1 parent b4c757f commit 017343ece5b4905b3880b9345d79cd6b2fc07419 @netskin-ci netskin-ci committed Oct 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequel_sexy_validations/validators/uniqueness.rb
@@ -15,7 +15,7 @@ def self.validate(model, attribute, value, options)
options[:message] ||= "bereits vergeben"
- dataset = model.class.filter(~:id => model.id, attribute => value)
+ dataset = model.class.filter(~{:id => model.id}, {attribute => value})
if options[:scope].is_a?(Array)
options[:scope].each do |v|
case v

0 comments on commit 017343e

Please sign in to comment.