foodsoft/lib/foodsoft_wiki/lib/foodsoft_wiki.rb
wvengen 90f60595e6 don't fail in foodsoft_config without database,
and use proper config defaults so that configuration editing has
sensible default values
2014-09-02 14:21:32 +02:00

13 lines
347 B
Ruby

require 'wikicloth'
require 'acts_as_versioned'
require 'diffy'
require 'content_for_in_controllers'
require 'foodsoft_wiki/engine'
module FoodsoftWiki
# Return whether the wiki is used or not.
# Enabled by default in {FoodsoftConfig} since it used to be part of the foodsoft core.
def self.enabled?
FoodsoftConfig[:use_wiki]
end
end