Fix all Layout/SpaceInsideParens rubocop issues and remove files from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-26 18:06:01 +02:00
parent c4d90691b1
commit 1c8e039862
5 changed files with 7 additions and 16 deletions

View File

@@ -156,7 +156,7 @@ class User < ActiveRecord::Base
def has_official_email?
domain = Setting['email_domain_for_officials']
email.present? && ( (email.end_with? "@#{domain}") || (email.end_with? ".#{domain}") )
email.present? && ((email.end_with? "@#{domain}") || (email.end_with? ".#{domain}"))
end
def display_official_position_badge?