diff options
author | Lukas Matt <lukas@zauberstuhl.de> | 2014-03-23 00:04:09 +0400 |
---|---|---|
committer | Lukas Matt <lukas@zauberstuhl.de> | 2014-05-15 15:23:43 +0400 |
commit | 0fae1137fa35cd92bc55a4da22525865a8eb9e38 (patch) | |
tree | 46b2ed37ae760eb53d83173d630153cbb1415f91 | |
parent | 1a0c9f5983b63eff1f17aa96e4e1f4dc502004c1 (diff) |
Using unless instead of 'if !'
-rw-r--r-- | app/mailers/report_mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/report_mailer.rb b/app/mailers/report_mailer.rb index 4a9b639a9..143f22d8b 100644 --- a/app/mailers/report_mailer.rb +++ b/app/mailers/report_mailer.rb @@ -11,7 +11,7 @@ class ReportMailer < ActionMailer::Base } Role.admins.each do |role| user = User.find_by_id(role.person_id) - if !user.user_preferences.exists?(:email_type => :someone_reported) + unless user.user_preferences.exists?(:email_type => :someone_reported) resource[:email] = user.email format(resource).deliver end |