tramway-event 2.0 → 2.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 015ee29d79339473ab21a7599accf8bc1b6069dc2857b2c27e2f043009ffe0d3
4
- data.tar.gz: 14bc25abb9f1b8ad28c934950217fb9b11499f761fa6ea941e1bddc628015958
3
+ metadata.gz: fc3e3f7ea09462c36274e6c058c12865de5b010605f2b5b446306f92dc1013e7
4
+ data.tar.gz: bd8342d90440544a55b88db0f63f7815c275333686e8eff06c487bc72a9cbaca
5
5
  SHA512:
6
- metadata.gz: 6470ed1ac3acb351551206cef82ad9629f4216a679af39ee1c0a0ac423cc2dcb56d095702b56917aacc9a160a2669a60c95a6f996ef8aa561a8df21df021638c
7
- data.tar.gz: 4511da3a712ebb85953d3c807c91bfead1bc81a3c9f046e462a8fe4814fe5b6a76206715e48f6483d6ca6ab713f159beb48abfb9f61600132bd55ec688109743
6
+ metadata.gz: c93a457bf387332c3e8439d406a83ac7b830178dd98514f562974ddcd36478bde6a7bd193edd1f85475d20dd499864b0c55c8611477dd4773adb46b31c7dd4bf
7
+ data.tar.gz: 41e37164b15f123ebd3d775d79b894fe0914bfc24932c7c5b4df34221ee850a000bd7beb66f8339e3e65c9edbdeb86140d0b9cbe2db67c0d951a31a378120e92
@@ -1,18 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway.set_available_models(::Tramway::Event::Event,
4
- ::Tramway::Event::ParticipantFormField,
5
- ::Tramway::Event::Participant,
6
- ::Tramway::Event::Section,
7
- ::Tramway::Event::Person,
8
- ::Tramway::Event::Partaking,
9
- ::Tramway::Event::Place,
10
- ::Tramway::Event::Action,
11
- project: :event)
12
- ::Tramway.set_notificable_queries new_participants: lambda { |current_user|
13
- ::Tramway::Event::Participant.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
14
- }
3
+ Rails.application.config.after_initialize do
4
+ Tramway.set_available_models(Tramway::Event::Event,
5
+ Tramway::Event::ParticipantFormField,
6
+ Tramway::Event::Participant,
7
+ Tramway::Event::Section,
8
+ Tramway::Event::Person,
9
+ Tramway::Event::Partaking,
10
+ Tramway::Event::Place,
11
+ Tramway::Event::Action,
12
+ project: :event)
13
+ Tramway.set_notificable_queries new_participants: lambda { |current_user|
14
+ Tramway::Event::Participant.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
15
+ }
15
16
 
16
- ::Tramway::Landing.head_content = lambda do
17
- javascript_include_tag 'tramway/event/application'
17
+ Tramway::Landing.head_content = lambda do
18
+ javascript_include_tag 'tramway/event/application'
19
+ end
18
20
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '2.0'
5
+ VERSION = '2.0.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: 2.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tramway