From 3d5e0043a6649d5058e2911f2b772574bb98aefd Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Mon, 6 May 2024 15:50:19 +0200 Subject: [PATCH] refacto: remove unused small variant --- app/models/champs/piece_justificative_champ.rb | 1 - app/models/champs/titre_identite_champ.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/models/champs/piece_justificative_champ.rb b/app/models/champs/piece_justificative_champ.rb index 8d9435d17..b6dfb0bef 100644 --- a/app/models/champs/piece_justificative_champ.rb +++ b/app/models/champs/piece_justificative_champ.rb @@ -2,7 +2,6 @@ class Champs::PieceJustificativeChamp < Champ FILE_MAX_SIZE = 200.megabytes has_many_attached :piece_justificative_file do |attachable| - attachable.variant :small, resize: '300x300' attachable.variant :medium, resize: '400x400' end diff --git a/app/models/champs/titre_identite_champ.rb b/app/models/champs/titre_identite_champ.rb index 05b67e802..667feca7e 100644 --- a/app/models/champs/titre_identite_champ.rb +++ b/app/models/champs/titre_identite_champ.rb @@ -3,7 +3,6 @@ class Champs::TitreIdentiteChamp < Champ ACCEPTED_FORMATS = ['image/png', 'image/jpeg'] has_many_attached :piece_justificative_file do |attachable| - attachable.variant :small, resize: '300x300' attachable.variant :medium, resize: '400x400' end