mirror of
https://github.com/redmine/redmine.git
synced 2025-12-17 14:00:35 +01:00
code cleanup: rubocop: fix Layout/SpaceAfterSemicolon in app/models/mail_handler.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18657 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -351,11 +351,6 @@ Layout/SpaceAfterComma:
|
|||||||
Layout/SpaceAfterNot:
|
Layout/SpaceAfterNot:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/SpaceAfterSemicolon:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/mail_handler.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyleInsidePipes.
|
# Configuration parameters: EnforcedStyleInsidePipes.
|
||||||
# SupportedStylesInsidePipes: space, no_space
|
# SupportedStylesInsidePipes: space, no_space
|
||||||
|
|||||||
@@ -560,7 +560,7 @@ class MailHandler < ActionMailer::Base
|
|||||||
unless user.valid?
|
unless user.valid?
|
||||||
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
|
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
|
||||||
user.firstname = "-" unless user.errors[:firstname].blank?
|
user.firstname = "-" unless user.errors[:firstname].blank?
|
||||||
(puts user.errors[:lastname];user.lastname = "-") unless user.errors[:lastname].blank?
|
(puts user.errors[:lastname]; user.lastname = "-") unless user.errors[:lastname].blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
user
|
user
|
||||||
|
|||||||
Reference in New Issue
Block a user