Use boolean comparators where it makes sense

This commit is contained in:
wvengen 2015-01-14 21:15:08 +01:00
parent dbdc7ae4aa
commit 118886344a
28 changed files with 60 additions and 60 deletions

View file

@ -4,7 +4,7 @@ require "foodsoft_uservoice/engine"
module FoodsoftUservoice
# enabled when configured, but can still be disabled by use_uservoice option
def self.enabled?
FoodsoftConfig[:use_uservoice] != false and FoodsoftConfig[:uservoice]
FoodsoftConfig[:use_uservoice] != false && FoodsoftConfig[:uservoice]
end
module LoadUservoice