2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
class Identity < ApplicationRecord
|
2019-02-15 15:39:39 +05:30
|
|
|
# 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-12-04 20:38:33 +05:30
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
Identity::UniquenessScopes.prepend_mod_with('Identity::UniquenessScopes')
|