fix error
This commit is contained in:
parent
008031e372
commit
2060c5fcf1
|
@ -9,8 +9,8 @@ class AnnouncementsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def manually_sort
|
def manually_sort
|
||||||
if defined?(OrbitHelper::SharedHash) && OrbitHelper::SharedHash['announcement']
|
if defined?(OrbitHelper::SharedHash)
|
||||||
OrbitHelper::SharedHash['announcement'][:enable_manually_sort]
|
OrbitHelper::SharedHash['announcement'][:enable_manually_sort] rescue AnnouncementSetting.first.enable_manually_sort
|
||||||
else
|
else
|
||||||
AnnouncementSetting.first.enable_manually_sort rescue false
|
AnnouncementSetting.first.enable_manually_sort rescue false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue