Sha256: 48f05f1231695600dce376e7095f081ae08676fdcbcd46d88ef8d78c9e2a3a18

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

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

  enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram, :telegram ]
  #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

1 entries across 1 versions & 1 rubygems

Version Path
tramway-profiles-1.2.0.1 app/models/tramway/profiles/social_network.rb