foodsoft/plugins/discourse/lib/foodsoft_discourse.rb
2017-09-22 13:58:00 +02:00

8 lines
215 B
Ruby

require 'foodsoft_discourse/engine'
require 'foodsoft_discourse/redirect_to_login'
module FoodsoftDiscourse
def self.enabled?
FoodsoftConfig[:discourse_url] && FoodsoftConfig[:discourse_sso_secret]
end
end