tramway-sport_school 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/tramway.rb +16 -0
- data/lib/tramway/sport_school/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0be9ab33378972f9dd67db3033ceb5660e586f3453fc4b27ab81a95211d07194
|
4
|
+
data.tar.gz: 58f9aed940933305bf95f4cb5c812e54791422f0275d902d105357f3049b8aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0892deafb63a3721d15a6cdffe4eeab4d0ad3f2819f7e635942fd425747bbc7b829366dc412f6cfd616a0846e1c030ef4bf99daa1555ca5dcee53fe5a4c342d6'
|
7
|
+
data.tar.gz: 43cb082c5af0fe417f9125b697a2c0d9ea2dcf74ffcfcb22701caeafcafc8df2ae271de495c518c90c9e429331340fe67edfa5df290f9776867d6d29b412c5c0
|
@@ -6,3 +6,19 @@
|
|
6
6
|
::Tramway::Admin.set_singleton_models ::Tramway::SportSchool::Institution
|
7
7
|
::Tramway::Core.initialize_application model_class: ::Tramway::SportSchool::Institution
|
8
8
|
::Tramway::Profiles.records = [ ::Tramway::SportSchool::Institution ]
|
9
|
+
::Tramway::Admin.set_additional_buttons Tramway::SportSchool::Institution.to_s => {
|
10
|
+
show: ::Tramway::Profiles::SocialNetwork.network_name.values.map do |network|
|
11
|
+
{
|
12
|
+
action: :new,
|
13
|
+
model_name: Tramway::Profiles::SocialNetwork.to_s,
|
14
|
+
text: "Добавить профиль #{network}",
|
15
|
+
params: {
|
16
|
+
Tramway::Profiles::SocialNetwork.to_s.underscore => {
|
17
|
+
record_type: -> { model_name.name },
|
18
|
+
record_id: -> { id },
|
19
|
+
network_name: network
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
end
|
24
|
+
}
|
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.1.
|
4
|
+
version: 1.1.2
|
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-03-
|
11
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|