This commit is contained in:
chiu 2021-03-31 08:20:01 +08:00
parent 3aeb2a993b
commit ec5de28e05
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class GalleryUploader < CarrierWave::Uploader::Base
def transparent?(*arg) def transparent?(*arg)
now_id = model.album_id.to_s now_id = model.album_id.to_s
now_album = Album.all.select { |value| (now_id==value.id.to_s)}[0] 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 end
def pad_process (w,h) def pad_process (w,h)
now_id = model.album_id.to_s now_id = model.album_id.to_s