From 92e2a83e0ecb6a44bfbc8abc35a4a5373d9746ff Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 29 Mar 2023 15:05:41 +0200 Subject: [PATCH] Use Rails7 command for image variant syntax --- app/models/enterprise.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 6443b19bab..2dd3afd545 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -16,8 +16,8 @@ class Enterprise < ApplicationRecord large: { resize_to_fill: [1200, 260] }, }.freeze WHITE_LABEL_LOGO_SIZES = { - default: { gravity: "Center", resize: "217x44^", crop: '217x44+0+0' }, - mobile: { gravity: "Center", resize: "75x26^", crop: '75x26+0+0' }, + default: { gravity: "Center", resize_to_fill: [217, 44] }, + mobile: { gravity: "Center", resize_to_fill: [75, 26] }, }.freeze VALID_INSTAGRAM_REGEX = %r{\A[a-zA-Z0-9._]{1,30}([^/-]*)\z}