diff options
author | Valery Sizov <vsv2711@gmail.com> | 2014-11-27 13:34:39 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2014-12-04 13:03:55 +0200 |
commit | 3a5ed5260b24051939575d1934ce9b8392cac09f (patch) | |
tree | 04d361e52d16234f00e5cdd27b5ebfef9a503579 /app/models/identity.rb | |
parent | 1a80d13a3990937580c97e2b0ba8fb98f69bc055 (diff) | |
download | gitlab-ce-3a5ed5260b24051939575d1934ce9b8392cac09f.tar.gz |
Supporting for multiple omniauth provider for the same user
Diffstat (limited to 'app/models/identity.rb')
-rw-r--r-- | app/models/identity.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/identity.rb b/app/models/identity.rb index e6af93bcc50..5fb1850c30b 100644 --- a/app/models/identity.rb +++ b/app/models/identity.rb @@ -2,6 +2,4 @@ class Identity < ActiveRecord::Base belongs_to :user validates :extern_uid, allow_blank: true, uniqueness: {scope: :provider} - - scope :ldap, -> { where('provider LIKE ?', 'ldap%') } end
\ No newline at end of file |