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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca07e7a096888b8e85b498fdb143b2a833d2d8a68837b23b750f9307d565293
|
4
|
+
data.tar.gz: 0a6b4f724c3beefed58645e58e35ee04a06326b3bdb0d27711db022f88397fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
4
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2020-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|