Fix Style/FirstParameterIndentation

This commit is contained in:
Jared Beck 2016-03-13 20:04:08 -04:00
parent 4b3fbab08a
commit 9ec7bb82af
2 changed files with 1 additions and 10 deletions

View File

@ -62,14 +62,6 @@ Style/ClassAndModuleChildren:
Style/Documentation:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Style/FirstParameterIndentation:
Exclude:
- 'lib/paper_trail/serializers/json.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/Lambda:

View File

@ -25,8 +25,7 @@ module PaperTrail
# 123.
if value.is_a? Numeric
arel_field.matches("%\"#{field}\":#{json_value},%").
or(
arel_field.matches("%\"#{field}\":#{json_value}}%"))
or(arel_field.matches("%\"#{field}\":#{json_value}}%"))
else
arel_field.matches("%\"#{field}\":#{json_value}%")
end