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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4aca7bb22dc19661ad5a05cefa42426225ca7b5dce368fc14860e0330ac92e
|
4
|
+
data.tar.gz: 7aeb30e43d82adf28f35ab4e755be0b2bbf84a037fcb75009796a3da81443407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2b48ca458e0a30a9a7cf86227579909c8b1cdbc8d8fce97087f6f4f357c4dd899baacd9777daa6b23905cd050e9bdbf4bcb5a08b7be454555560fd7375f71e
|
7
|
+
data.tar.gz: dc5e64db663bce9c301e7af68df4fc0e52b770409d2b5a60537f066f55bdc1445be33fd550795a8ada8a0c71e90aa1eafa4377118268794e26140d6d81a3f8a7
|
@@ -1,13 +1,14 @@
|
|
1
1
|
- object.associations(:has_many).each do |association|
|
2
|
-
|
3
|
-
%
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
%
|
8
|
-
|
9
|
-
|
10
|
-
%
|
11
|
-
|
12
|
-
|
13
|
-
|
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')
|
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
|
+
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-
|
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
|