diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2201f8bd..f475b3bf 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -258,10 +258,3 @@ Style/RescueModifier: Style/SignalException: Exclude: - 'lib/paper_trail/has_paper_trail.rb' - -# Offense count: 1 -# Configuration parameters: Methods. -# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]} -Style/SingleLineBlockParams: - Exclude: - - 'lib/paper_trail/reifier.rb' diff --git a/lib/paper_trail/reifier.rb b/lib/paper_trail/reifier.rb index c38f654a..2bbc7cc6 100644 --- a/lib/paper_trail/reifier.rb +++ b/lib/paper_trail/reifier.rb @@ -263,7 +263,7 @@ module PaperTrail klass. paper_trail_version_class. where("id IN (#{version_id_subquery})"). - inject({}) { |acc, v| acc.merge!(v.item_id => v) } + inject({}) { |a, e| a.merge!(e.item_id => e) } end # Temporarily suppress #save so we can reassociate with the reified