diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-12-28 14:06:22 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-12-28 14:06:22 -0800 |
commit | 1b91f534ce91ff5d0a4d39d96a8f19b58022d403 (patch) | |
tree | 666057e036eebe5743609daa1beb4b38b00e8543 /activerecord | |
parent | d927265abda1797e86ba6c724f483f94d6b9f51c (diff) | |
download | rails-1b91f534ce91ff5d0a4d39d96a8f19b58022d403.tar.gz rails-1b91f534ce91ff5d0a4d39d96a8f19b58022d403.tar.bz2 rails-1b91f534ce91ff5d0a4d39d96a8f19b58022d403.zip |
Fix uniqueness validation: with_exclusive_scope is not public
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/validations/uniqueness.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations/uniqueness.rb b/activerecord/lib/active_record/validations/uniqueness.rb index b3a34501dc..ffbe1b5c40 100644 --- a/activerecord/lib/active_record/validations/uniqueness.rb +++ b/activerecord/lib/active_record/validations/uniqueness.rb @@ -22,7 +22,7 @@ module ActiveRecord params << record.send(:id) end - finder_class.with_exclusive_scope do + finder_class.send(:with_exclusive_scope) do if finder_class.exists?([sql, *params]) record.errors.add(attribute, :taken, :default => options[:message], :value => value) end |