foodsoft/plugins/discourse/lib/foodsoft_discourse.rb

9 lines
215 B
Ruby
Raw Normal View History

2017-09-22 01:14:48 +02:00
require 'foodsoft_discourse/engine'
require 'foodsoft_discourse/redirect_to_login'
module FoodsoftDiscourse
def self.enabled?
FoodsoftConfig[:discourse_url] && FoodsoftConfig[:discourse_sso_secret]
end
end