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