Fix bug.
This commit is contained in:
parent
3aeb2a993b
commit
ec5de28e05
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue