2018-11-12 08:14:13 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-28 09:17:42 -04:00
|
|
|
class Identity < ApplicationRecord
|
2018-11-12 08:14:13 -05:00
|
|
|
# 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
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
Identity::UniquenessScopes.prepend_if_ee('EE::Identity::UniquenessScopes')
|