tramway-event 1.12.3.1 → 1.12.3.6

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: '0608556ec1455f2c866928e358bacb162d2d23cd2addf7b48b86a6aaec061e55'
4
- data.tar.gz: c99be8faf627154f6cd8a49849a39fd3fe61f1b7baa1c2195abd2b81c1816e56
3
+ metadata.gz: 240a1d98655e2d71b4901ce6602c0d7215b4e477ad2ae2cc096e8285280e2955
4
+ data.tar.gz: 1e616d3af7bdd6fbae65e3e9e50b36d5a3c67f3f7663f7aca745cb6f6064104d
5
5
  SHA512:
6
- metadata.gz: 9064b081f4c524f9d581706002ccf043387fc4c47826fd8611510c46f5ed67ec4cde3a2866ee7f35342bf5d4c70e132d960df1a92b3d926924190327899d7546
7
- data.tar.gz: 35f25dd3478061426fc7f3126d3d72387b613a341b70a4d5e5b93afb5828152ad8acdd1268b2057cf27a671701cd8d3c5289c6b2dbaff8b9f1589b4ac36a06c8
6
+ metadata.gz: 3aa3bb0ca75a4c35ffc9cd9fe142ddab5a4e430af45b0d95596965b8413738781bccc01ae8761de02f560506fedf9fbc065a2429ae5a608106e3958de7b78102
7
+ data.tar.gz: 8ef4a9674d2cd67351a8968cfed70efb85a4f20a578c0ab0f2fd483e58e2d88a3c813d13f322c7a450eb077743a15a9e464f5ab8ffb837200687bc8a00bd6cda
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::Event::EventLinkDecorator < ::Tramway::Landing::LinkDecorator
3
+ class Tramway::Event::EventLinkDecorator < ::Tramway::Landing::Navbar::LinkDecorator
4
4
  delegate :title, to: :object
5
5
 
6
6
  def link
@@ -45,7 +45,7 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
45
45
 
46
46
  def responsible_person
47
47
  {
48
- title: Tramway::User::UserDecorator.decorate(object.creator).name,
48
+ title: Tramway::User::UserDecorator.decorate(object.creator)&.name,
49
49
  phone: (object.creator.phone if object.creator&.phone&.present?),
50
50
  email: (object.creator.email if object.creator&.email&.present?),
51
51
  social_networks: (object.creator.social_networks.active if object.creator.respond_to?(:social_networks))
@@ -50,6 +50,6 @@ class Admin::Tramway::Event::ParticipantFormFieldForm < ::Tramway::Core::Extende
50
50
  end
51
51
 
52
52
  def options=(value)
53
- super value == '' ? value : JSON.parse(value)
53
+ model.options = value == '' ? value : JSON.parse(value)
54
54
  end
55
55
  end
@@ -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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.12.3.1'
5
+ VERSION = '1.12.3.6'
6
6
  end
7
7
  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.12.3.1
4
+ version: 1.12.3.6
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-04-12 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configus