Sha256: 7a7c20c28f75edf0cb9f5bdaffb118c55749237e51c372cb614ca15cdb31eb1b
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 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.model_class]).compact) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-profiles-1.3.2 | app/models/tramway/profiles/social_network.rb |