tramway-admin 4.0.1 → 4.0.1.1
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: ac328eb42232bc603e790685aba070cda1a7e16be185a33ecbca0b3378d07ea0
|
4
|
+
data.tar.gz: 709d4ee3987dacbf02a550a9de043c307777d4c5c6343015852777cf07366a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fe0fc0c0337462214ec2e2da661c924f7c210442a7c3a468dc19cd2d12ad9c2f8bbfc104bfe67f42539eba056f288324f8dddb8f40443ab785d278fdbeddef0
|
7
|
+
data.tar.gz: 734ed5eb5b5a9d592f938c0dc103381bb2cd3b5cdcf0810b6a493047252897fce98d5ce3d90d412f0ddad80bfbf9ce82de81eb9556f2f7e09006b031a5e35af0
|
@@ -7,7 +7,7 @@
|
|
7
7
|
%td
|
8
8
|
= model_class.human_attribute_name association.name
|
9
9
|
%hr
|
10
|
-
- if create_is_available?(association.
|
10
|
+
- if create_is_available?(association.class_name) && (association_type != :has_one || !object.send(association.name).present?)
|
11
11
|
= link_to "#{I18n.t('helpers.actions.add')} #{model_class.human_attribute_name(association.name).singularize.downcase}", new_associated_record_path(association: association, object: object, as: object.send("#{association.name}_as")), class: 'btn btn-primary'
|
12
12
|
%td{ colspan: 2 }
|
13
13
|
- if association_type.in? [ :has_one, :belongs_to ]
|