tramway-admin 1.12.0.4 → 1.12.0.5

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: 1ca356defb291adc69fe2f32e74078543054cd75a1eb0e54553c90951c55ffb4
4
- data.tar.gz: cc346d68ce78bc159927481550c0121a534bde044b3ef04b282c4fdbb7f21a2a
3
+ metadata.gz: 0f4aca7bb22dc19661ad5a05cefa42426225ca7b5dce368fc14860e0330ac92e
4
+ data.tar.gz: 7aeb30e43d82adf28f35ab4e755be0b2bbf84a037fcb75009796a3da81443407
5
5
  SHA512:
6
- metadata.gz: 96a2806622a7fe63c2fcc27add642ec6874c4fc804df22473e1f5a27e7ec75d4750685cfb9a9a75eeee199cc621abcf341d473611d08490236a0bf580b2881e5
7
- data.tar.gz: f65bf1c18c8729c2da87f4bcd391edeff3a952cd24bc222bee2f540f658afd7bac794ab8a1e5bd170e70ff8ffcfb37d4368b2d6679add6a0c43f9ad7e4be210c
6
+ metadata.gz: db2b48ca458e0a30a9a7cf86227579909c8b1cdbc8d8fce97087f6f4f357c4dd899baacd9777daa6b23905cd050e9bdbf4bcb5a08b7be454555560fd7375f71e
7
+ data.tar.gz: dc5e64db663bce9c301e7af68df4fc0e52b770409d2b5a60537f066f55bdc1445be33fd550795a8ada8a0c71e90aa1eafa4377118268794e26140d6d81a3f8a7
@@ -1,13 +1,14 @@
1
1
  - object.associations(:has_many).each do |association|
2
- %tr
3
- %td
4
- = model_class.human_attribute_name association.name
5
- = link_to fa_icon(:plus), new_record_path(model: association.class_name, redirect: current_model_record_path(object)), class: 'btn btn-primary'
6
- %td{ colspan: 2 }
7
- %table.table.table-striped.table-bordered
8
- - object.send(association.name).each do |association_object|
9
- %tr
10
- %td
11
- = association_object.id
12
- %td
13
- = link_to association_object.name, record_path(association_object.id, model: 'Project')
2
+ - if object.class.show_associations.map(&:to_s).include? association.name.to_s
3
+ %tr
4
+ %td
5
+ = model_class.human_attribute_name association.name
6
+ = link_to fa_icon(:plus), new_record_path(model: association.class_name, redirect: current_model_record_path(object)), class: 'btn btn-primary'
7
+ %td{ colspan: 2 }
8
+ %table.table.table-striped.table-bordered
9
+ - object.send(association.name).each do |association_object|
10
+ %tr
11
+ %td
12
+ = association_object.id
13
+ %td
14
+ = link_to association_object.name, record_path(association_object.id, model: 'Project')
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.12.0.4'
3
+ VERSION = '1.12.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0.4
4
+ version: 1.12.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-04 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views