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 +4 -4
- data/app/models/tramway/event/event.rb +1 -11
- data/lib/tramway/event/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91eaee001cf92c31afe0140867010c3deeede9e5b0143e1d101ad7a81dc2a3e2
|
4
|
+
data.tar.gz: 1519885469a745c325598bc33f1a2469e14bff9bced07c75cc160e7488c8b445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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
|
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.
|
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:
|
11
|
+
date: 2019-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|