From a0fac7192241f3242af410ca16e6dd43b933c98e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 1 Feb 2011 14:25:33 -0800 Subject: store the serialized column values in the @attributes hash --- activerecord/lib/active_record/validations/uniqueness.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'activerecord/lib/active_record/validations') diff --git a/activerecord/lib/active_record/validations/uniqueness.rb b/activerecord/lib/active_record/validations/uniqueness.rb index a96796f9ff..76110b73e4 100644 --- a/activerecord/lib/active_record/validations/uniqueness.rb +++ b/activerecord/lib/active_record/validations/uniqueness.rb @@ -15,12 +15,6 @@ module ActiveRecord def validate_each(record, attribute, value) finder_class = find_finder_class_for(record) - coder = record.class.serialized_attributes[attribute.to_s] - - if value && coder - value = coder.dump value - end - sql, params = mount_sql_and_params(finder_class, record.class.quoted_table_name, attribute, value) relation = finder_class.unscoped.where(sql, *params) -- cgit v1.2.3