tramway-event 1.6 → 1.6.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: 356196b9484317b81ca8f71c892e190739f6090c286615bf8307abec599e78a3
4
- data.tar.gz: 2db8e0ac6a5c1245d2e741cfef9ed402b4564c5766fb48cac6d3ac663010110d
3
+ metadata.gz: fc602ac539cba79d19723b5f08fdd5b19ec05feb636287625bbc3acdf8a850dd
4
+ data.tar.gz: 06af3c19b02f9b7c364c23092a5300e62c094423b4b56c502617bf2201e88e1a
5
5
  SHA512:
6
- metadata.gz: c86f930b2320a99ed8b71e4d83e0cfcd0845541147821156106d0e94178c361312e748cdc92ad2fc1c27e8007ba3af9bfffdc906d5e034f5e58ff9b6d4666dd2
7
- data.tar.gz: 600f8c199396e7d7edbfafe059283db44483da6f5b5bdb939c31b29515178db4ed92d0ff413ca52d9bf5b6be22baf08e152eb8dae79115608286e688f97cf4f3
6
+ metadata.gz: 1ae386fe96c0d73e1c53615ae81d4d3fb742f6e01431067de773085deaff26a7cb7cefc33d613a5e4deddc8995f588d72245e3cf5726aad4d1ab29d2a3ddd48e
7
+ data.tar.gz: 839c0eafd86a5cd61c6d684cd59794be6b3e71a79c1212154fcf31ed17a2b4c9e47f5c2d883e9696cff45ec3f270a38d5d5e5bbb8e28f38383ea287a24db9f06
@@ -3,6 +3,10 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
3
3
  def collections
4
4
  [ :all ]
5
5
  end
6
+
7
+ def list_attributes
8
+ [ :event_title ]
9
+ end
6
10
  end
7
11
 
8
12
  delegate :description, to: :object
@@ -19,4 +23,8 @@ class Tramway::Event::SectionDecorator < ::Tramway::Landing::BlockTypes::Feature
19
23
  def anchor
20
24
  "section-#{object.id}"
21
25
  end
26
+
27
+ def event_title
28
+ object.event.title
29
+ end
22
30
  end
@@ -18,7 +18,7 @@ class Tramway::Event::Participant < ::Tramway::Event::ApplicationRecord
18
18
  end
19
19
 
20
20
  event :reject do
21
- transition [ :requested, :without_answer, :waiting ] => :rejected
21
+ transition [ :requested, :without_answer, :waiting, :prev_approved ] => :rejected
22
22
  end
23
23
 
24
24
  event :approve do
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.6'
3
+ VERSION = '1.6.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.6'
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov