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