Fixed delivering emails to users.

There was a bug in User#receive_email? Return values are now true or false, not '1' or '0'.
This commit is contained in:
Benjamin Meichsner 2013-09-06 11:40:10 +02:00
parent 3792069fda
commit a0760ebfdb
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class User < ActiveRecord::Base
end
def receive_email?
settings.messages['send_as_email'] == "1" && email.present?
settings.messages['send_as_email'] && email.present?
end
# Sets the user's password. It will be stored encrypted along with a random salt.