From ec5de28e0558ee9120b8e6a7c9ea1540d27a21c8 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 31 Mar 2021 08:20:01 +0800 Subject: [PATCH] Fix bug. --- app/uploaders/gallery_uploader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uploaders/gallery_uploader.rb b/app/uploaders/gallery_uploader.rb index 539ffc7..67cacc2 100644 --- a/app/uploaders/gallery_uploader.rb +++ b/app/uploaders/gallery_uploader.rb @@ -174,7 +174,7 @@ class GalleryUploader < CarrierWave::Uploader::Base def transparent?(*arg) now_id = model.album_id.to_s now_album = Album.all.select { |value| (now_id==value.id.to_s)}[0] - now_album.album_colors.first['color']=='transparent' + now_album.album_colors.first['color']=='transparent' rescue false end def pad_process (w,h) now_id = model.album_id.to_s