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