Enable the Layout/TrailingWhitespace cop

This commit is contained in:
gregoirenovel 2018-01-15 22:13:52 +01:00
parent 2df14691e7
commit 813844f9db
3 changed files with 4 additions and 4 deletions

View file

@ -234,7 +234,7 @@ Layout/TrailingBlankLines:
Enabled: true
Layout/TrailingWhitespace:
Enabled: false
Enabled: true
Lint/AmbiguousBlockAssociation:
Enabled: false

View file

@ -43,9 +43,9 @@ class Administrateur < ActiveRecord::Base
if active?
raise "Impossible d'inviter un utilisateur déjà actif !"
end
reset_password_token = set_reset_password_token
AdministrationMailer.invite_admin(self, reset_password_token).deliver_now!
reset_password_token

View file

@ -10,7 +10,7 @@ class Administration < ActiveRecord::Base
def invite_admin(email)
administrateur = Administrateur.new({
email: email,
active: false
active: false
})
administrateur.password = administrateur.password_confirmation = SecureRandom.hex