Prefer each over map because unused return value

This commit is contained in:
Ryuta Kamizono 2017-01-02 05:02:48 +09:00
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