Move plugins to separate directory.
This commit is contained in:
parent
6e990fed4c
commit
6aa8ee7968
59 changed files with 4 additions and 4 deletions
11
plugins/messages/lib/foodsoft_messages.rb
Normal file
11
plugins/messages/lib/foodsoft_messages.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
require "foodsoft_messages/engine"
|
||||
require "foodsoft_messages/user_link"
|
||||
require "deface"
|
||||
|
||||
module FoodsoftMessages
|
||||
# Return whether messages are used or not.
|
||||
# Enabled by default in {FoodsoftConfig} since it used to be part of the foodsoft core.
|
||||
def self.enabled?
|
||||
FoodsoftConfig[:use_messages]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue