12 lines
298 B
Ruby
12 lines
298 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class Identity < ActiveRecord::Base
|
||
|
# 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
|