Sha256: 950d013676a03355d902ceeabafc19d47862d054d5e5c962c7cd4a499123ad32

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
  belongs_to :record, polymorphic: true

  enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram, :telegram, :patreon ]
  #enumerize :record_type, in: ::Tramway::Profiles.records
  #
  # HACK
  enumerize :record_type, in: [ 'Tramway::SportSchool::Institution', 'Tramway::Conference::Unity' ], default: 'Tramway::SportSchool::Institution'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-profiles-1.3.1 app/models/tramway/profiles/social_network.rb
tramway-profiles-1.3 app/models/tramway/profiles/social_network.rb