tramway-event 1.12.3.2 → 1.12.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/decorators/tramway/event/action_decorator.rb +4 -0
- data/app/decorators/tramway/event/event_link_decorator.rb +1 -1
- data/app/forms/admin/tramway/event/participant_form_field_form.rb +1 -1
- data/app/helpers/tramway/event/application_helper.rb +1 -0
- data/app/models/tramway/event/event.rb +1 -1
- 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: 750aa0c60f787cbaa08e0de2b8918aeef960fd5e3dc76639d3d4bbd7a8e94d4f
|
4
|
+
data.tar.gz: d31fea495ff54e472f60507e98b2c48b01d3ca9452fec86daab6f6cb0d16250f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2253d1a8d00c90676403737a2dd48643a1974aab4b97123d65ca2cb93f2018bb8c70d892a5d2b67f12f99e3bd2fb0d393d734942dfedb435782ce8400b2fb0cc
|
7
|
+
data.tar.gz: ea1972a689ccacce9bc68753cc1a60d8b5ca37c654774f3d63dbd4b0f180654452333a1a9566119629bc23601e4c348f609511b18f969ca62b2ff20b2de2774f
|
@@ -10,6 +10,10 @@ class Tramway::Event::ActionDecorator < Tramway::Core::ApplicationDecorator
|
|
10
10
|
"#{object.title} - #{date_view(object.deadline)} - #{state_machine_view(object, :action_state)}"
|
11
11
|
end
|
12
12
|
|
13
|
+
def title
|
14
|
+
object.title
|
15
|
+
end
|
16
|
+
|
13
17
|
def action_state_button_color(event)
|
14
18
|
case event
|
15
19
|
when :do
|
@@ -7,7 +7,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
7
7
|
|
8
8
|
def check_dimensions
|
9
9
|
if photo.present?
|
10
|
-
errors.add :photo, :too_small_image if photo.width < 1920 || photo.height < 1080
|
10
|
+
errors.add :photo, :too_small_image if photo.width.present? && (photo.width < 1920 || photo.height < 1080)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
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.3.
|
4
|
+
version: 1.12.3.7
|
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-
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configus
|