foodsoft/plugins/polls/lib/foodsoft_polls.rb

10 lines
251 B
Ruby
Raw Permalink Normal View History

2017-11-05 22:16:32 +01:00
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