Sha256: f613cd2227f30920930e5a49c941ac1770b1eb1a00d51ec728504029132f0f24

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

Rails.application.config.after_initialize do
  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
    ],
    project: :event
  )
  Tramway.set_notificable_queries new_participants: lambda { |current_user|
    Tramway::Event::Participant.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
  }

  Tramway::Landing.head_content = lambda do
    javascript_include_tag 'tramway/event/application'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-event-2.0.1 config/initializers/tramway.rb