tramway-conference 1.9.1.1 → 1.9.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: ad40e6c4151bfd311e002e97a3a34bce1055cd12225d43dd4f6708b631ead706
4
- data.tar.gz: 9140a071cc329e707d769a34b9ea9ac665d26dd943b390310c965bdf4da31007
3
+ metadata.gz: 786613b7890c52320b647bab18cce0d97ab12d53b2a0dd9dd31f50c2827b4b0f
4
+ data.tar.gz: 10437d3e97255bdabd3d5a67620606185d9b0b3ae96f323123afcecd2250e41e
5
5
  SHA512:
6
- metadata.gz: 71e4514f156605bfff4892a7ac410b871bb3f89ce65b399011d399c3457f16e58af09ca7bc9e2dc9455140ca138dbaecc2a376b78ad22ecc46f50d0b4ecd1544
7
- data.tar.gz: 04c6abcb8e102b09c9678f2dc8ae6500400e9b02a09b8e636f216ae9fb72e6b5630247c8e1ff02d654690eaefef8a640d7185f1c6267f56777208124e38cfaca
6
+ metadata.gz: 2b7cd9d4b0781e644cf3d4d495bb4915c04ef89cb18b910b76298e9d6dd17fcec3365024b781017f8e7042d5e409737a06162d18c147336ecda30dc028daee70
7
+ data.tar.gz: f004ce62c040f8eee58172d6fb6037a343f93f70176c560187762a59590b236fe8582f071d8d741463fca530b99968d45dc2828f48de242e7904b82e1dbd9a51
@@ -5,9 +5,17 @@ class Tramway::Conference::UnityDecorator < ::Tramway::Core::ApplicationDecorato
5
5
  def collections
6
6
  [:all]
7
7
  end
8
+
9
+ def show_attributes
10
+ [ :title, :tagline, :logo, :address, :phone, :latitude, :longtitude, :url, :found_date, :email]
11
+ end
12
+
13
+ def show_associations
14
+ [ :social_networks ]
15
+ end
8
16
  end
9
17
 
10
- delegate :logo, to: :object
11
- delegate :title, to: :object
18
+ delegate_attributes :title, :logo, :tagline, :address, :phone, :latitude, :longtitude, :url, :found_date, :email
19
+
12
20
  decorate_association :social_networks
13
21
  end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Event::EventAsPageWithButtonDecorator < Tramway::Event::EventDecorator
2
4
  def anchor
3
5
  "event_#{object.id}"
4
6
  end
5
7
 
6
- delegate :photo, to: :object
7
- delegate :title, to: :object
8
+ delegate_attributes :photo, :title
9
+
8
10
  alias background photo
9
11
 
10
12
  def description
@@ -11,6 +11,7 @@
11
11
  ::Tramway::Event::Place,
12
12
  ::Tramway::Event::Action,
13
13
  ::Tramway::User::User,
14
+ ::Tramway::Profiles::SocialNetwork,
14
15
  project: :conference)
15
16
  ::Tramway::Core.initialize_application model_class: ::Tramway::Conference::Unity
16
17
  ::Tramway::Landing.head_content = lambda do
@@ -9,6 +9,7 @@ ru:
9
9
  logo: Логотип
10
10
  address: Адрес
11
11
  phone: Телефон
12
+ social_networks: Социальные сети
12
13
  cases:
13
14
  tramway/conference/unity:
14
15
  genitive: проект
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'font-awesome-rails'
4
+ require 'tramway/profiles'
4
5
 
5
6
  module Tramway
6
7
  module Conference
7
8
  class Engine < ::Rails::Engine
8
9
  isolate_namespace Tramway::Conference
10
+ ::Tramway::Profiles.records = '::Tramway::Conference::Unity'
9
11
  end
10
12
  end
11
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Conference
5
- VERSION = '1.9.1.1'
5
+ VERSION = '1.9.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-conference
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Korotin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-05 00:00:00.000000000 Z
12
+ date: 2020-03-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email: