Prefer each
over map
because unused return value
This commit is contained in:
parent
04a120fd94
commit
a685a865c6
@ -106,7 +106,7 @@ def update_counters(id, counters)
|
||||
|
||||
if touch
|
||||
object = find(id)
|
||||
touch_updates(object, touch).map do |column, touch_time|
|
||||
touch_updates(object, touch).each do |column, touch_time|
|
||||
updates << "#{connection.quote_column_name(column.to_s)} = #{connection.quote(touch_time)}"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user