foodsoft/plugins/polls/lib/foodsoft_polls.rb
Patrick Gansterer d476993321 Add polls plugin
2020-02-24 14:27:22 +01:00

9 lines
251 B
Ruby

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