Fix Style/MethodDefParentheses
This commit is contained in:
parent
2bf0520ee2
commit
de7175fbe4
|
@ -116,13 +116,6 @@ Style/LineEndConcatenation:
|
|||
- 'lib/paper_trail/config.rb'
|
||||
- 'lib/paper_trail/has_paper_trail.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
||||
Style/MethodDefParentheses:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 2
|
||||
Style/ModuleFunction:
|
||||
Exclude:
|
||||
|
|
|
@ -44,7 +44,7 @@ module PaperTrail
|
|||
@mutex.synchronize { !!@enabled }
|
||||
end
|
||||
|
||||
def enabled= enable
|
||||
def enabled=(enable)
|
||||
@mutex.synchronize { @enabled = enable }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue