FIX: make plugin compatible with older Discourse (#28)

@tgxworld
This commit is contained in:
Tomas Varaneckas 2019-05-16 03:24:17 +03:00 committed by Guo Xiang Tan
parent ac288b9300
commit 95d8d5e9ea
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module DiscourseChat
def self.is_enabled(provider) def self.is_enabled(provider)
if defined? provider::PROVIDER_ENABLED_SETTING if defined? provider::PROVIDER_ENABLED_SETTING
SiteSetting.get(provider::PROVIDER_ENABLED_SETTING) SiteSetting.public_send(provider::PROVIDER_ENABLED_SETTING)
else else
false false
end end