tramway-event 1.9.2 → 1.9.3

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: 6d9103eadd50c9621d5811222c3fe58531ab5c97f4d6644b52f79b932b5972db
4
- data.tar.gz: 513815f3f055e85378c254b336a02452ee8e084fc209ee7db86d3f65c2380512
3
+ metadata.gz: 91eaee001cf92c31afe0140867010c3deeede9e5b0143e1d101ad7a81dc2a3e2
4
+ data.tar.gz: 1519885469a745c325598bc33f1a2469e14bff9bced07c75cc160e7488c8b445
5
5
  SHA512:
6
- metadata.gz: 73dd563cfbc42ed48f80d5ed5e574e59bae6e16588b02dcb9ba11ad8bf8d3978e70584fc7b210e997a29c2a161ded3b04e4d85410933042b7c1a0332df3933b8
7
- data.tar.gz: b79e1c529152a683b1dc164671f6fdb8a46c85fd130b3059c3949c78fbadf1b38011de58561c7569ff0104f120e3401f988ed3ea6d592aef97c655fd4bf5cd26
6
+ metadata.gz: a01d880a1996cfcbb83a0614ad7517e1083a4af2cf60b5eda659eaa40382ea27ce3f62dc4c4f98976d71e8b91a65a461b073571b42fb425d20b9f3424aa5a897
7
+ data.tar.gz: 5f8665c8d567147fe42880ad34e1fdd15ba6e8721c2b383e36a7641190dca7b261316ad0cd8d9fab394002770c50d93444cae224e2b7ae31f90068f0b74fe43c
@@ -22,15 +22,5 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
22
22
  return :are_being_right_now if request_collecting_begin_date&.past? && request_collecting_end_date&.future?
23
23
  end
24
24
 
25
- ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
26
- define_method partnership_type.pluralize.to_sym do
27
- query = <<-SQL
28
- tramway_partner_partnerships.partnership_type = '#{partnership_type}'
29
- AND tramway_partner_partnerships.partner_id = '#{id}'
30
- AND tramway_partner_partnerships.state = 'active'
31
- AND tramway_partner_partnerships.partner_type = 'Tramway::Event::Event'
32
- SQL
33
- Tramway::Partner::Organization.joins(:partnerships).where(query)
34
- end
35
- end
25
+ include ::Tramway::Partner::Scopes
36
26
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9.2'
3
+ VERSION = '1.9.3'
4
4
  end
5
5
  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.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-24 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: