tramway-event 1.9.21.1 → 1.9.22

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: 05f7f0f7f06ebdf7373ba320b926319f14bd08aa0b6d30d5799d534cc7f4a3d3
4
- data.tar.gz: 58d618005134bd70959d7d125d57d379dc0f328c6e07e8a2e3fc39de96e41564
3
+ metadata.gz: 21bfca3b1b8713bd4755da8068ae7459d8983465bf84f687807810ae35047080
4
+ data.tar.gz: efcfba6f216a1b44467dcaf961ffada72ab375bff88a1d34579f0ec7724c32ca
5
5
  SHA512:
6
- metadata.gz: 12a20b93a75b062f5e6ba60fdc3fe5183da8de9482f9c72b43e50fc6ca9f22562a158083d63abab44dda8397bcb3798186796a78e4e24d1ea2663a19c9ce07b4
7
- data.tar.gz: 22f44583d305e30750a12f0f40bf76281b95fe6de16f06f0f59eb1aba5b2927c5a6bc574d2c419cce94cf0ca16ee88a2f4ef9ad2c5387bda3d3de6538b670198
6
+ metadata.gz: 45bdb4150364af1107161812557eecb3f77bee2bd7a99202c744641973118eec76fe918b98cccc217071cf1eafc686bb1e7b63a8f1551d877c8569edde35abf8
7
+ data.tar.gz: 377445c6ed0a8dd9fcd7607ad0c81c19ceaee23afd5b8e18de37c2bdff8263ab1fdc56ddb52d497ba751dd2a0202b5df3e518f94fcb9780e6a59f442a4c47494
@@ -8,4 +8,6 @@
8
8
  ::Tramway::Event::Partaking,
9
9
  ::Tramway::Event::Place,
10
10
  project: :event)
11
- ::Tramway::Admin.set_notificable_queries new_participants: -> { ::Tramway::Event::Participant.active.where(participation_state: :requested) }
11
+ ::Tramway::Admin.set_notificable_queries new_participants: -> (current_user) do
12
+ ::Tramway::Event::Participant.active.where(participation_state: :requested).send "#{current_user.role}_scope", current_user.id
13
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.9.21.1'
5
+ VERSION = '1.9.22'
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: 1.9.21.1
4
+ version: 1.9.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: