Merge pull request #1685 from betagouv/enable-cop

Enable cop
This commit is contained in:
Frederic Merizen 2018-03-21 10:59:50 +01:00 committed by GitHub
commit 0dabd28ea5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -990,7 +990,7 @@ Style/MethodCalledOnDoEndBlock:
Enabled: false Enabled: false
Style/MethodDefParentheses: Style/MethodDefParentheses:
Enabled: false Enabled: true
Style/MethodMissing: Style/MethodMissing:
Enabled: false Enabled: false

View file

@ -26,7 +26,7 @@ namespace :'2017_10_30_copy_commentaire_piece_justificative_to_file' do
return name.mb_chars.to_s return name.mb_chars.to_s
end end
def process_commentaire commentaire def process_commentaire(commentaire)
puts "Processing commentaire #{commentaire.id}" puts "Processing commentaire #{commentaire.id}"
if commentaire.piece_justificative.present? if commentaire.piece_justificative.present?
# https://github.com/carrierwaveuploader/carrierwave#uploading-files-from-a-remote-location # https://github.com/carrierwaveuploader/carrierwave#uploading-files-from-a-remote-location