Sha256: 63ac7d4f1055d4c0663b9636603211c2361ee2bedff63bd1ed7f397687bf07a0

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

Rails.application.config.after_initialize do
  Tramway.root_path_for Tramway::User => '/admin'
  Tramway.set_singleton_models Tramway::Conference::Unity, project: :conference
  Tramway.set_available_models(Tramway::Event::Event,
                               Tramway::Event::ParticipantFormField,
                               Tramway::Event::Participant,
                               Tramway::Event::Section,
                               Tramway::Event::Person,
                               Tramway::Event::Partaking,
                               Tramway::Event::Place,
                               Tramway::Event::Action,
                               Tramway::User,
                               Tramway::Profiles::SocialNetwork,
                               project: :conference)
  Tramway.initialize_application model_class: Tramway::Conference::Unity
  Tramway::Landing.head_content = lambda do
    concat stylesheet_link_tag    'tramway/conference/application', media: 'all'
    concat javascript_include_tag 'tramway/conference/application'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-conference-1.9.5.7 config/initializers/tramway.rb