fixes User#receive_email?

This commit is contained in:
Manuel Wiedenmann 2013-07-18 16:58:04 +02:00
parent dfe1cee4cd
commit c85a7fcc5c
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_mail'] == "1" && email.present?
settings.messages['send_as_email'] == "1" && email.present?
end
# Sets the user's password. It will be stored encrypted along with a random salt.