tramway-sport_school 1.2.10.6 → 1.2.11

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: a51149be46ede49a222e3e5db70499bebadca39e1404ad842e1efdb72b0e0644
4
- data.tar.gz: 13f0333df23bb76fdd5392d0144470be5423c0aff5446b9b32d9631dcb683ad4
3
+ metadata.gz: 5ca07e7a096888b8e85b498fdb143b2a833d2d8a68837b23b750f9307d565293
4
+ data.tar.gz: 0a6b4f724c3beefed58645e58e35ee04a06326b3bdb0d27711db022f88397fb5
5
5
  SHA512:
6
- metadata.gz: 2dd4198286d74ab60e632a7577a8150dc304ac53241eb7a3b9a19928510f7b7dc50771dd751644a0e0da42459d03d07da23d8e16262ab65910c54ad324253d0c
7
- data.tar.gz: 3d125d482fbecfd7f6380e9fd8e30ba2a0b506564f1485dc0f597d6d3091b9990575d65101bff33ac7f78fe977e1f41111bba7060fc5dda635b28d8396ca7c41
6
+ metadata.gz: f54da20e75311edd45dc9a29538ca13c8c28e6c1714816a4b5f3323de64c2a6ea0cefdf54aa809267efbd1fb9d21dcd402fb3f3f70ab9c2f6c83547e2755147a
7
+ data.tar.gz: 07cd216141cea2a662c7d1828826ce953dbc1f55e41684cc96bd28ef94608d295cb4f99ffe24af294cac96c84e7f18efbbb665193d95d129cb029ff19189054c
@@ -21,9 +21,7 @@ class Tramway::SportSchool::TrainerDecorator < ::Tramway::Core::ApplicationDecor
21
21
 
22
22
  alias title full_name
23
23
 
24
- delegate :photo, to: :object
25
- delegate :degree, to: :object
26
- delegate :description, to: :object
24
+ delegate_attributes :photo, :degree, :description
27
25
 
28
26
  def view_state
29
27
  object.human_view_state_name
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Tramway::SportSchool
4
- class Institution < ::Tramway::Core::ApplicationRecord
5
- has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
6
- end
3
+ class Tramway::SportSchool::Institution < ::Tramway::Core::ApplicationRecord
4
+ has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
7
5
  end
@@ -9,7 +9,6 @@
9
9
  project: :sport_school)
10
10
  ::Tramway::Admin.set_singleton_models(::Tramway::SportSchool::Institution, project: :sport_school)
11
11
  ::Tramway::Core.initialize_application model_class: ::Tramway::SportSchool::Institution
12
- ::Tramway::Profiles.records = [::Tramway::SportSchool::Institution]
13
12
  ::Tramway::Admin.set_additional_buttons({ Tramway::SportSchool::Institution.to_s => {
14
13
  show: ::Tramway::Profiles::SocialNetwork.network_name.values.map do |network|
15
14
  {
@@ -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 SportSchool
7
8
  class Engine < ::Rails::Engine
8
9
  isolate_namespace Tramway::SportSchool
10
+ ::Tramway::Profiles.records = '::Tramway::SportSchool::Institution'
9
11
  end
10
12
  end
11
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module SportSchool
5
- VERSION = '1.2.10.6'
5
+ VERSION = '1.2.11'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-sport_school
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10.6
4
+ version: 1.2.11
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-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg