Sha256: d45c3efd81cffb5904443665555c98ce45163e636aa5413c4245e2e2c8404adb

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

# frozen_string_literal: true

::Tramway::Auth.root_path = '/admin'
::Tramway::Admin.set_available_models(::Tramway::SportSchool::KindSport,
  ::Tramway::SportSchool::Trainer,
  ::Tramway::SportSchool::Document,
  ::Tramway::SportSchool::Organization,
  ::Tramway::User::User,
  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

3 entries across 3 versions & 1 rubygems

Version Path
tramway-sport_school-1.2.10.1 config/initializers/tramway.rb
tramway-sport_school-1.2.10 config/initializers/tramway.rb
tramway-sport_school-1.2.9.2 config/initializers/tramway.rb