2018-11-12 13:14:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-28 13:17:42 +00:00
|
|
|
class Identity < ApplicationRecord
|
2018-11-12 13:14:13 +00: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 13:26:31 +00:00
|
|
|
|
2021-05-11 21:10:21 +00:00
|
|
|
Identity::UniquenessScopes.prepend_mod_with('Identity::UniquenessScopes')
|