diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-11-11 11:22:13 +0100 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-11 11:22:13 +0100 |
commit | 78a18392e15c3de1c70b44e285d1742687624dd1 (patch) | |
tree | d9089d2f6c4128e5ed398d183d01d5f5ee90c39b | |
parent | cbb38bbdba0f7cfb628a0f8716e79d0d079fd7bf (diff) | |
download | rails-78a18392e15c3de1c70b44e285d1742687624dd1.tar.gz rails-78a18392e15c3de1c70b44e285d1742687624dd1.tar.bz2 rails-78a18392e15c3de1c70b44e285d1742687624dd1.zip |
Remove redundant uniq
-rw-r--r-- | activerecord/lib/active_record/association_preload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/association_preload.rb b/activerecord/lib/active_record/association_preload.rb index 6e194ab9b4..69300e5ce5 100644 --- a/activerecord/lib/active_record/association_preload.rb +++ b/activerecord/lib/active_record/association_preload.rb @@ -312,7 +312,7 @@ module ActiveRecord table_name = klass.quoted_table_name primary_key = klass.primary_key column_type = klass.columns.detect{|c| c.name == primary_key}.type - ids = id_map.keys.uniq.map do |id| + ids = id_map.keys.map do |id| if column_type == :integer id.to_i elsif column_type == :float |