don't fail in foodsoft_config without database,
and use proper config defaults so that configuration editing has sensible default values
This commit is contained in:
parent
7b000c39eb
commit
90f60595e6
3 changed files with 13 additions and 6 deletions
|
|
@ -6,8 +6,8 @@ require 'foodsoft_wiki/engine'
|
|||
|
||||
module FoodsoftWiki
|
||||
# Return whether the wiki is used or not.
|
||||
# Enabled by default since it used to be part of the foodsoft core.
|
||||
# Enabled by default in {FoodsoftConfig} since it used to be part of the foodsoft core.
|
||||
def self.enabled?
|
||||
FoodsoftConfig[:use_wiki] != false
|
||||
FoodsoftConfig[:use_wiki]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue