Skip to content
This repository
Browse code

Remove redundant uniq

  • Loading branch information...
commit 78a18392e15c3de1c70b44e285d1742687624dd1 1 parent cbb38bb
Frederick Cheung authored November 11, 2008 NZKoz committed November 11, 2008
2  activerecord/lib/active_record/association_preload.rb
@@ -312,7 +312,7 @@ def preload_belongs_to_association(records, reflection, preload_options={})
312 312
           table_name = klass.quoted_table_name
313 313
           primary_key = klass.primary_key
314 314
           column_type = klass.columns.detect{|c| c.name == primary_key}.type
315  
-          ids = id_map.keys.uniq.map do |id|
  315
+          ids = id_map.keys.map do |id|
316 316
             if column_type == :integer
317 317
               id.to_i
318 318
             elsif column_type == :float

0 notes on commit 78a1839

Please sign in to comment.
Something went wrong with that request. Please try again.