From 5eb9d6854c9854d0a41d2cc1c9b9ce9b53cb2257 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 20 Nov 2017 14:14:00 +0100 Subject: [PATCH] Remove now useless encoding statements As utf-8 is the default encoding since Ruby 2, this is no longer needed --- app/uploaders/base_uploader.rb | 2 -- app/uploaders/cerfa_uploader.rb | 2 -- app/uploaders/piece_justificative_uploader.rb | 2 -- app/uploaders/procedure_logo_uploader.rb | 2 -- 4 files changed, 8 deletions(-) diff --git a/app/uploaders/base_uploader.rb b/app/uploaders/base_uploader.rb index 5ee0d6321..279e3ced6 100644 --- a/app/uploaders/base_uploader.rb +++ b/app/uploaders/base_uploader.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - class BaseUploader < CarrierWave::Uploader::Base def cache_dir if Rails.env.production? diff --git a/app/uploaders/cerfa_uploader.rb b/app/uploaders/cerfa_uploader.rb index 7d31762f5..2867c76b2 100644 --- a/app/uploaders/cerfa_uploader.rb +++ b/app/uploaders/cerfa_uploader.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - class CerfaUploader < BaseUploader before :cache, :set_original_filename diff --git a/app/uploaders/piece_justificative_uploader.rb b/app/uploaders/piece_justificative_uploader.rb index e5c93b34d..779ce2a1f 100644 --- a/app/uploaders/piece_justificative_uploader.rb +++ b/app/uploaders/piece_justificative_uploader.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - class PieceJustificativeUploader < BaseUploader before :cache, :set_original_filename diff --git a/app/uploaders/procedure_logo_uploader.rb b/app/uploaders/procedure_logo_uploader.rb index acce9da15..6730967fc 100644 --- a/app/uploaders/procedure_logo_uploader.rb +++ b/app/uploaders/procedure_logo_uploader.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 - class ProcedureLogoUploader < BaseUploader def root File.join(Rails.root, "public")