Sha256: 8ce082fae1113d2cf79ad28ecf2daceb5d57ff424a04f19710af19f10781bc93

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

::Tramway::Auth.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

3 entries across 3 versions & 1 rubygems

Version Path
tramway-sport_school-1.2.9.1 config/initializers/tramway.rb
tramway-sport_school-1.2.9 config/initializers/tramway.rb
tramway-sport_school-1.2.8.1 config/initializers/tramway.rb