Corrected with rubocop cop 'Style/ClassMethods'.

This commit is contained in:
Thorsten Eckel 2015-05-05 13:01:16 +02:00
parent 07d3baee2b
commit a14e3fa608
2 changed files with 1 additions and 3 deletions

View file

@ -272,8 +272,6 @@ Style/MultilineOperationIndentation:
Enabled: false
Style/OneLineConditional:
Enabled: false
Style/ClassMethods:
Enabled: false
Lint/Eval:
Enabled: false
Style/ModuleFunction:

View file

@ -573,7 +573,7 @@ end
# workaround to parse subjects with 2 different encodings correctly (e. g. quoted-printable see test/fixtures/mail9.box)
module Mail
module Encodings
def Encodings.value_decode(str)
def self.value_decode(str)
# Optimization: If there's no encoded-words in the string, just return it
return str unless str.index('=?')