1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Fix Style/SingleLineBlockParams

This commit is contained in:
Jared Beck 2016-03-05 17:13:22 -05:00
parent c24d0b4780
commit 69d1344b2f
2 changed files with 1 additions and 8 deletions

View file

@ -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'

View file

@ -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