Fix bug.
This commit is contained in:
parent
8f2e48cfb8
commit
645046149f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue