Sha256: a6c25b6ba8663f41db8029bb62a1de96cb8f66a9fcd22b8f2d8a713821bb90bb
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord belongs_to :record, polymorphic: true, required: false enumerize :network_name, in: %i[vk facebook twitter instagram telegram patreon] enumerize :record_type, in: ((['Tramway::SportSchool::Institution', 'Tramway::Conference::Unity'].map do |type| type if const_defined?(type) end + [Tramway::Core.application_object.try(:model_class) || Tramway::Core.application_object]).compact) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-profiles-1.3.2.2 | app/models/tramway/profiles/social_network.rb |