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: 4f49bf5b4e9e0ac337b90230037a618c730eb92fc0d11c2139a8452e4a44fc66
4
- data.tar.gz: 1560fc7b9a504b76a78a3272f9feae6c672add55ce468255aee7593c4453f1dd
3
+ metadata.gz: ac328eb42232bc603e790685aba070cda1a7e16be185a33ecbca0b3378d07ea0
4
+ data.tar.gz: 709d4ee3987dacbf02a550a9de043c307777d4c5c6343015852777cf07366a78
5
5
  SHA512:
6
- metadata.gz: 27ce4b592fed1ea8a20b2c164187947313a35f044bea80cffa324647fad7191518e97b37e2b1eb6e0d2e23eae3d2afec95bddcdfbb03789ca5d93fbe1a3092f8
7
- data.tar.gz: 3d44b49c30c6fea3c44db3e934613e8341cc0198e0c18280c6990965eedd91befa1bd8589a7c34f10816f4afe281830484839ecf54d5dbf144c281b519c45cd9
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.name) && (association_type != :has_one || !object.send(association.name).present?)
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 ]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '4.0.1'
5
+ VERSION = '4.0.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov