mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove redundant uniq
This commit is contained in:
parent
cbb38bbdba
commit
78a18392e1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue