fix for pro settings if settings are not enabled

This commit is contained in:
Harry Bomrah 2016-07-06 16:43:09 +08:00
parent bfbececdbf
commit b67730775c
1 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,6 @@ class AnnouncementSetting
end
def self.is_pro?
self.first.pro_enabled
self.first.pro_enabled rescue false
end
end