mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Secondary emails support.
This commit is contained in:

committed by
Guo Xiang Tan

parent
50e59fb9bd
commit
21ebb1cd54
@ -15,6 +15,8 @@ class UserEmail < ActiveRecord::Base
|
||||
validate :user_id_not_changed, if: :primary
|
||||
validate :unique_email
|
||||
|
||||
scope :secondary, -> { where(primary: false) }
|
||||
|
||||
private
|
||||
|
||||
def strip_downcase_email
|
||||
|
Reference in New Issue
Block a user