This commit is contained in:
BoHung Chiu 2021-05-24 17:44:52 +08:00
parent 8f2e48cfb8
commit 645046149f
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Album
Position object at bottom-right of region
"""
tmp = self[:resize_gravity]
(tmp.blank? ? AlbumSetting.first.resize_gravity : tmp) rescue 'Center'
(tmp.blank? ? (AlbumSetting.first.resize_gravity.blank? ? "Center" : AlbumSetting.first.resize_gravity) : tmp) rescue 'Center'
end
def self.find_by_param(input)
self.find_by(uid: input)