Enable the Layout/TrailingWhitespace cop
This commit is contained in:
parent
2df14691e7
commit
813844f9db
3 changed files with 4 additions and 4 deletions
|
@ -234,7 +234,7 @@ Layout/TrailingBlankLines:
|
|||
Enabled: true
|
||||
|
||||
Layout/TrailingWhitespace:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
Enabled: false
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue