summaryrefslogtreecommitdiff
path: root/app/models/identity/uniqueness_scopes.rb
blob: c1890865a1cf0aa10a0e08396bbf10661b7e1af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Identity < ApplicationRecord
  # This module and method are defined in a separate file to allow EE to
  # redefine the `scopes` method before it is used in the `Identity` model.
  module UniquenessScopes
    def self.scopes
      [:provider]
    end
  end
end

Identity::UniquenessScopes.prepend_if_ee('EE::Identity::UniquenessScopes')