Class: Decidim::Identity

Inherits:
ApplicationRecord show all
Includes:
DataPortability
Defined in:
app/models/decidim/identity.rb

Overview

Store user’s social identities

Class Method Summary collapse

Class Method Details

.export_serializerObject



20
21
22
# File 'app/models/decidim/identity.rb', line 20

def self.export_serializer
  Decidim::DataPortabilitySerializers::DataPortabilityIdentitySerializer
end

.user_collection(user) ⇒ Object



16
17
18
# File 'app/models/decidim/identity.rb', line 16

def self.user_collection(user)
  where(decidim_user_id: user.id)
end