From def87a1621104033242e59e87c2330de15517d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 25 Oct 2023 22:14:47 +0200 Subject: [PATCH] Remove variants from attachment --- app/models/app_catalog/web_app.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/app_catalog/web_app.rb b/app/models/app_catalog/web_app.rb index ced6b29..b42bea7 100644 --- a/app/models/app_catalog/web_app.rb +++ b/app/models/app_catalog/web_app.rb @@ -3,11 +3,7 @@ class AppCatalog::WebApp < ApplicationRecord has_many :remote_storage_authorizations - has_one_attached :icon do |attachable| - attachable.variant :medium, resize_to_limit: [128,128] - attachable.variant :large, resize_to_limit: [256,256] - end - + has_one_attached :icon has_one_attached :apple_touch_icon validates :url, presence: true, uniqueness: true