Sha256: ad9b0e74c4ae7eadd75152797289a7415654785ca529c5ffb2b3edf17a659d2b
Contents?: true
Size: 1.17 KB
Versions: 6
Compression:
Stored size: 1.17 KB
Contents
::Tramway::User.root_path = '/admin' ::Tramway::Admin.set_available_models(::Tramway::SportSchool::KindSport, ::Tramway::SportSchool::Trainer, ::Tramway::SportSchool::Document, ::Tramway::SportSchool::Organization, project: :sport_school) ::Tramway::Admin.set_singleton_models(::Tramway::SportSchool::Institution, project: :sport_school) ::Tramway::Core.initialize_application model_class: ::Tramway::SportSchool::Institution ::Tramway::Profiles.records = [ ::Tramway::SportSchool::Institution ] ::Tramway::Admin.set_additional_buttons({ Tramway::SportSchool::Institution.to_s => { show: ::Tramway::Profiles::SocialNetwork.network_name.values.map do |network| { action: :new, model_name: Tramway::Profiles::SocialNetwork.to_s, text: "Добавить профиль #{network}", params: { Tramway::Profiles::SocialNetwork.to_s.underscore => { record_type: -> { model_name.name }, record_id: -> { id }, network_name: network } } } end }}, project: :sport_school)
Version data entries
6 entries across 6 versions & 1 rubygems