tramway-event 1.8.5 → 1.8.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: f9c12311266981956a6e8355441fb61879ba70c7b5e6774a4600a0eb75fdf211
4
- data.tar.gz: 4558ad858d3a78536f7796c2589c3afce4caf114785229c8731492ed802e24f2
3
+ metadata.gz: dcf9a40307340af1bf8a365b3c10fec72513ece02ff6230b56c17b8adf25fc32
4
+ data.tar.gz: b2701f002905ded09b693b4544f75dc090c4b3de6c199644df8c9f29fd8ab8cd
5
5
  SHA512:
6
- metadata.gz: 6b2dbb00d0d4d9e4e833beb07ec567dda071d4e8a56e7827a6b2aaed0af56fe7209213a78acd016879425c6feda122db83c2cb0b4a3ab03cbfa09db3df971881
7
- data.tar.gz: 42531af6a0ccba9f079616b5d2d5117da0ed3beadc2c03ec4a465739be76e0343bbb4dde357ad52381ffe9a66e4a3c2f5eb9b38007cce6922a774aa64bc08692
6
+ metadata.gz: 5240099a929df8a4805e61a9b6bc40fa375aac570dae399581de4b660989ee2343d685471dd2e12f3062e1f371f79724ec7fa8bdf13d6780be953baab67f437e
7
+ data.tar.gz: 6b47424bef617f6dbc7b0b049aee550447dec6413c93c408403ce098e1a39b1823583038f1c2f730eb5f0df4e7aebe84b07a6f1e424a11033596ddcc65464833
@@ -3,6 +3,10 @@ class ::Tramway::Event::PartakingFeatureDecorator < ::Tramway::Landing::BlockTyp
3
3
  object.position&.html_safe
4
4
  end
5
5
 
6
+ def full_text
7
+ object.person.description
8
+ end
9
+
6
10
  def title
7
11
  "#{object.person.first_name} #{object.person.last_name}"
8
12
  end
@@ -1,11 +1,12 @@
1
1
  class Tramway::Event::PersonForm < ::Tramway::Core::ApplicationForm
2
- properties :first_name, :last_name, :photo
2
+ properties :first_name, :last_name, :photo, :description
3
3
 
4
4
  def initialize(object)
5
5
  super(object).tap do
6
6
  form_properties first_name: :string,
7
7
  last_name: :string,
8
- photo: :file
8
+ photo: :file,
9
+ description: :ckeditor
9
10
  end
10
11
  end
11
12
  end
@@ -39,7 +39,8 @@ module Tramway::Event::Generators
39
39
  # NOTE must be removed until tramway-event 2.0
40
40
  :rebuild_association_between_participant_and_partakings_to_polymorphic,
41
41
 
42
- :add_request_period_to_tramway_event_events
42
+ :add_request_period_to_tramway_event_events,
43
+ :add_description_to_tramway_event_people
43
44
  ]
44
45
  migrations.each do |migration|
45
46
  migration_template "#{migration}.rb", "db/migrate/#{migration}.rb"
@@ -0,0 +1,5 @@
1
+ class AddDescriptionToTramwayEventPeople < ActiveRecord::Migration[5.1]
2
+ def change
3
+ add_column :tramway_event_people, :description, :text
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.8.5'
3
+ VERSION = '1.8.6'
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.5
4
+ version: 1.8.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: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email:
@@ -68,6 +68,7 @@ files:
68
68
  - lib/tramway/event.rb
69
69
  - lib/tramway/event/engine.rb
70
70
  - lib/tramway/event/generators/install_generator.rb
71
+ - lib/tramway/event/generators/templates/add_description_to_tramway_event_people.rb
71
72
  - lib/tramway/event/generators/templates/add_icon_to_tramway_event_sections.rb
72
73
  - lib/tramway/event/generators/templates/add_more_fields_to_tramway_event_participants.rb
73
74
  - lib/tramway/event/generators/templates/add_options_to_tramway_event_participant_form_fields.rb