mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -8,7 +8,7 @@ class UserEmail < ActiveRecord::Base
|
||||
validates :email, presence: true, uniqueness: true
|
||||
|
||||
validates :email, email: true, format: { with: EmailValidator.email_regex },
|
||||
if: :skip_email_validation?
|
||||
if: :skip_email_validation?
|
||||
|
||||
validates :primary, uniqueness: { scope: [:user_id] }
|
||||
|
||||
|
Reference in New Issue
Block a user