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:
parent
c24d0b4780
commit
69d1344b2f
2 changed files with 1 additions and 8 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue