Add polls plugin
This commit is contained in:
parent
42e0ce86a8
commit
d476993321
29 changed files with 787 additions and 0 deletions
9
plugins/polls/lib/foodsoft_polls.rb
Normal file
9
plugins/polls/lib/foodsoft_polls.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require 'foodsoft_polls/engine'
|
||||
|
||||
module FoodsoftPolls
|
||||
# Return whether the polls are used or not.
|
||||
# Enabled by default in {FoodsoftConfig} since it used to be part of the foodsoft core.
|
||||
def self.enabled?
|
||||
FoodsoftConfig[:use_polls]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue