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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82798ccf497929344f92a69d87241cae1e2bfe8c5631cd8a2918a4bbb266c97a
4
- data.tar.gz: 0a2139ee20705e41dd9f9f36186424571aa33ab1b2cddf5b23040a8987b8a8e1
3
+ metadata.gz: 0be9ab33378972f9dd67db3033ceb5660e586f3453fc4b27ab81a95211d07194
4
+ data.tar.gz: 58f9aed940933305bf95f4cb5c812e54791422f0275d902d105357f3049b8aed
5
5
  SHA512:
6
- metadata.gz: b56ebc5afe3f87720cc65590e21d90963acd4698f6ed6201615390adce15b19d63552acdc340046c8fcc4f8562dbe0e4a799b9645c4ccfd220c8130dba400b45
7
- data.tar.gz: e3b1e69bd465c0808e6c2a46e6311f58d6bb78e0127fac869f6a848b02dad04b9db667e3fdfec34cc7e31ac1d49bcd1b33ab486af6b4b80f55c7fd9e07094fca
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
+ }
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module SportSchool
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  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.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-14 00:00:00.000000000 Z
11
+ date: 2018-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg