tramway-admin 1.18.1 → 1.18.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: 4ae22115d6b8978b050c7b090d9c75a96a34495dfaa6ed27000e5f39b1d09fa9
4
- data.tar.gz: 292ab0a60acca87a47584493e0037ca20d1f9a7f2361123d08b674bea5040a85
3
+ metadata.gz: 3774180f3fd03ac5863e9dd80e0f5d94b84eb044b7d7dca7bc093f3912e2de6c
4
+ data.tar.gz: 888c60435fa5b05e70168d0100f810ddde632498d43a6242baad93bc4148fc0f
5
5
  SHA512:
6
- metadata.gz: a584a11cc8d7f628c94dd73c449ff181efda27e33164e0f88c38c0290aefac0bf259723c17cc944decabf2f6ec82d5d2d01ebb700c8fabad0fa9053daf888b89
7
- data.tar.gz: 8ae159127aee9165412773cc71b361ab75fac67993b5c1d85a1a044d9f9e08a7be46d2594f4c36fdd886436997e2b87d31400291377352dba69f54a5e9023f3d
6
+ metadata.gz: a0777804e0cc2843e5dec7fdf9f4dfa2147bcef1edaa11a9ffeb1dc4d8b89d166de46e9bc91e508cd078b7188eacfb7680af57e2b3418a42d16490fe4c5b6d43
7
+ data.tar.gz: 032d20a35cc34f5bb5960f0ce9a7ed2b5b5b81e6ff536065d6ef10d4a5e701c0f97365d862a000d7133405cfbcd7e533c39bca1776aacd92a7fcbb0a1c7fed5c
@@ -78,7 +78,7 @@ module Tramway::Admin
78
78
  unless association.options[:class_name].present?
79
79
  raise "You should set `class_name` for #{association.name} association"
80
80
  end
81
- if association.polymorphic?
81
+ if association.options[:as].present?
82
82
  new_record_path model: association.class_name,
83
83
  redirect: current_model_record_path(object),
84
84
  association.options[:class_name].underscore => {
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '1.18.1'
5
+ VERSION = '1.18.1.1'
6
6
  end
7
7
  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.18.1
4
+ version: 1.18.1.1
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-10-18 00:00:00.000000000 Z
11
+ date: 2019-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views