tramway-event 1.8.7 → 1.8.8

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: 9eb4fd5b0a6af1db3db6fec5dd7b3f1c41563650c516e48096d6fe5f06de8ad8
4
- data.tar.gz: 80a383ac3aa407591b007f9341c87087ecdaca506242470e853f673636aa1f47
3
+ metadata.gz: 295af73c18fe1ac83321d139aaeb99b79158381809e0f7accebdeb985af5732d
4
+ data.tar.gz: 9641cf0c80da81a7b346f42ec775d3a488c7a7a84b1a242d9d68d97bb1ef623e
5
5
  SHA512:
6
- metadata.gz: dcfff5a965239434d0ac36a3b779619c6651ea5412e46d5f9ea4955a07a110b98ceabbe69b6586d54ad97d4263c0128b73951b9748384d19178a2bc4719d7330
7
- data.tar.gz: 9a7f9d8cdb236e34c381297d83e7ada36f56b459381e413437505412b4810a8046840cd2cb58a1a182596eb70fcefb1067393cf2e4088ffafca539b674fdec19
6
+ metadata.gz: 24407bc8a2d7bd6a852340c41faab1721838b54a5586fee4e66fde191c34d14e89d164a6f181c3a012058ed7516493e3390c4eed319b0e3a91c67185421aa5a4
7
+ data.tar.gz: 5fb5a64ab2f56d1a9601b7dfce5c6e1556e6dd83b1771b1baa1ae5968a3e20cda9b36eba5ca2c857ff800154b10f919f14d6a9ba4648a36d2dbc5639ef1f3f36
@@ -1,4 +1,4 @@
1
- class Tramway::Event::EventLinkDecorator < ::Tramway::Core::ApplicationDecorator
1
+ class Tramway::Event::EventLinkDecorator < ::Tramway::Landing::LinkDecorator
2
2
  delegate :title, to: :object
3
3
 
4
4
  def link
@@ -10,6 +10,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
10
10
 
11
11
  scope :main_event, -> { where(status: :main) }
12
12
  scope :actual, -> { where 'end_date > ?', DateTime.now }
13
+ scope :past, -> { where 'end_date < ?', DateTime.now }
13
14
 
14
15
  def request_collecting_state
15
16
  return :not_initialized unless request_collecting_begin_date.present? || request_collecting_end_date.present?
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.8.7'
3
+ VERSION = '1.8.8'
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.8.7
4
+ version: 1.8.8
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-11-09 00:00:00.000000000 Z
11
+ date: 2018-11-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: