tramway-event 1.6.1 → 1.6.2

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: fc602ac539cba79d19723b5f08fdd5b19ec05feb636287625bbc3acdf8a850dd
4
- data.tar.gz: 06af3c19b02f9b7c364c23092a5300e62c094423b4b56c502617bf2201e88e1a
3
+ metadata.gz: bbbe77857b2e956cbb82a8387bab4b6e495432f7cac6c3be31a682810cd7393a
4
+ data.tar.gz: 1dd244530d84808010c85c11af5267d9778f493e08ebd9edf9f6e9f6c97fdbde
5
5
  SHA512:
6
- metadata.gz: 1ae386fe96c0d73e1c53615ae81d4d3fb742f6e01431067de773085deaff26a7cb7cefc33d613a5e4deddc8995f588d72245e3cf5726aad4d1ab29d2a3ddd48e
7
- data.tar.gz: 839c0eafd86a5cd61c6d684cd59794be6b3e71a79c1212154fcf31ed17a2b4c9e47f5c2d883e9696cff45ec3f270a38d5d5e5bbb8e28f38383ea287a24db9f06
6
+ metadata.gz: 8af8ceba49a7dd8c72a5529f85ded447c0101dc408ce0a83d8b0f11b8d0871fa391f893d4aaa378fc44c82a131a48f9cd73768bc7254de281599e98b02814573
7
+ data.tar.gz: b2932800814e3086c4d0c22b55ee260c8a1288141372a7774481fb1b6f503be706d32807c71113b82a87b730ed775a5dacee11e2ee71aaf9cc3e696de4c09d23
@@ -23,13 +23,14 @@ class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorat
23
23
  def list_fields
24
24
  content_tag :table, class: :table do
25
25
  object.event.participant_form_fields.map do |field|
26
- if field.options['list_field'] == 'true'
26
+ hash = field.options.is_a?(Hash) ? field.options : JSON.parse(field.options.present? ? field.options : '{}')
27
+ if hash.dig('list_field') == 'true'
27
28
  concat(content_tag(:tr) do
28
29
  concat(content_tag(:td) do
29
30
  field.title
30
31
  end)
31
32
  concat(content_tag(:td) do
32
- object.values[field.title]
33
+ object.values&.dig( field.title )
33
34
  end)
34
35
  end)
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.6.1'
3
+ VERSION = '1.6.2'
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.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov