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

@ -6,7 +6,7 @@ module FoodsoftMessages
# modify user presentation link to writing a message for the user
def show_user_link(user=@current_user)
if user.nil? or not FoodsoftMessages.enabled?
if user.nil? || !FoodsoftMessages.enabled?
show_user user
else
link_to show_user(user), new_message_path('message[mail_to]' => user.id),