tramway-event 1.9 → 1.9.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: 33005b2651369b99ef16b07e17d5d997b0e171c6bd0011a81bde611039ec478c
4
- data.tar.gz: 0144eafb3f6265b0d536c6080f05e338423c0958b66ceaa5db04aea643ac8d40
3
+ metadata.gz: 3df1b0d7ef6fd03c69869cc2ae56bd89fd61126934eb8ea08726a675231e4dfa
4
+ data.tar.gz: e7c4951e8480719da7d7bc2442cfe8546aa6dc126b60f5cbe7479b25b81993be
5
5
  SHA512:
6
- metadata.gz: 0fb2bf375991bc12b8dcf08c3bd44142d6f0e52a923e591376ce6ae16cdbd3657baeb837b69b04b61036c96499431704c5a147c26a71dc353196fa1a001b57c6
7
- data.tar.gz: 440445b2629e5127a44731c60980c0eb1094480b59995d7b178073efe7b206a5d3cfe1bdc6132e27812ae182afc53ff9cbdc649b23e4b6e8ac2e46544a5e13d0
6
+ metadata.gz: 8e89a0960b154e3939413e1c6f8c21d5a276dc525dbb813b8fb78192760e1704d44fa1f13144a1b1e2083bf28c1d17594c6ca38fd8b3c45523af16ef4bb0cc04
7
+ data.tar.gz: 9bed6361560bba5e715fe1bc053cff3d40b6d96b9bd6903651661ff3f186bfc0988c1720f1ff6062b8c155fb0331a309dae4f852476295c2d0bf1182569ce44d
@@ -11,7 +11,7 @@ class Tramway::Event::EventsController < Tramway::Event::ApplicationController
11
11
  @events = ::Tramway::Event::Event.active.actual.map { |e| ::Tramway::Event::Events::Show::EventDecorator.decorate e }
12
12
  @people_as_features = @event.partakings.active.map { |p| ::Tramway::Event::PartakingFeatureDecorator.decorate p }
13
13
  @partners = ::Tramway::Partner::Partnership.partnership_type.values.reduce({}) do |hash, partnership_type|
14
- hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).map do |partner|
14
+ hash.merge! partnership_type => (event.send(partnership_type.to_s.pluralize).active.map do |partner|
15
15
  Tramway::Partner::OrganizationFeatureDecorator.decorate partner
16
16
  end)
17
17
  end
@@ -10,7 +10,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
10
10
 
11
11
  ::Tramway::Partner::Partnership.partnership_type.values.each do |partnership_type|
12
12
  has_many partnership_type.pluralize.to_sym, (-> do
13
- joins(:partnerships).where 'tramway_partner_partnerships.partnership_type = ?', partnership_type
13
+ joins(:partnerships).where 'tramway_partner_partnerships.partnership_type = ? AND tramway_partner_partnerships.state = \'active\'', partnership_type
14
14
  end), foreign_key: :organization_id, source: :organization, through: :partnerships, class_name: 'Tramway::Partner::Organization'
15
15
  end
16
16
 
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9'
3
+ VERSION = '1.9.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov