diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-02 05:02:48 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-02 05:02:48 +0900 |
commit | a685a865c6a9006578cdb14a339376724c7d8987 (patch) | |
tree | 64536ebc3a917ed288ab3d7f1a841a86e85ce848 /activerecord/lib | |
parent | 04a120fd94a75e2b8c7b5a79f42e3a4a9311931a (diff) | |
download | rails-a685a865c6a9006578cdb14a339376724c7d8987.tar.gz rails-a685a865c6a9006578cdb14a339376724c7d8987.tar.bz2 rails-a685a865c6a9006578cdb14a339376724c7d8987.zip |
Prefer `each` over `map` because unused return value
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/counter_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb index 3e637ad2b2..020f4b872e 100644 --- a/activerecord/lib/active_record/counter_cache.rb +++ b/activerecord/lib/active_record/counter_cache.rb @@ -106,7 +106,7 @@ module ActiveRecord 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 |