tramway-event 1.12.1 → 1.12.1.1
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 +3 -0
- data/config/locales/models.yml +4 -0
- 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: 8c611ce20cbaa6055b3294faa094760f7ede0568ab3e662b6bce013ced1fcee7
|
4
|
+
data.tar.gz: 6b0f5f7dc27b1798fe68f0a619f1b069fa74a2dfaf7c5ca2658dff1c1739cb2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 543bdc304158bc8030fef4d53ed8f133e9ade040cf46d76ec69a7f57c4ca2ee3f3b334188968f21376e35fde1c380d27564a0f843f3fcecb828e039e0d96ba03
|
7
|
+
data.tar.gz: 20cc1f6968396204d0051026d6aba955f5e7b173971ca0bb5d817558cb7961c55046b63f2e4b2443f54903709b1515ff1fa27f4a40db4dda43bd5817fb3a724c
|
@@ -27,6 +27,9 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
27
27
|
scope :open, -> { where reach: :open }
|
28
28
|
scope :closed, -> { where reach: :closed }
|
29
29
|
|
30
|
+
validates :begin_date, presence: true
|
31
|
+
validates :end_date, presence: true
|
32
|
+
|
30
33
|
def request_collecting_state
|
31
34
|
return :not_initialized unless request_collecting_begin_date.present? || request_collecting_end_date.present?
|
32
35
|
return :will_begin_soon if request_collecting_begin_date > DateTime.now
|
data/config/locales/models.yml
CHANGED
@@ -86,6 +86,10 @@ ru:
|
|
86
86
|
photo:
|
87
87
|
too_small_image: слишком маленькое (минимальный размер изображения 1920*1080)
|
88
88
|
image_aspect_ratio: не соответствует формату (соотношение сторон должно быть 16 на 9)
|
89
|
+
begin_date:
|
90
|
+
blank: не может быть пустым
|
91
|
+
end_date:
|
92
|
+
blank: не может быть пустым
|
89
93
|
tramway/event/participant:
|
90
94
|
attributes:
|
91
95
|
default:
|
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.12.1
|
4
|
+
version: 1.12.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configus
|