tramway-admin 1.18.4.1 → 1.18.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/tramway/admin/inputs_helper.rb +6 -10
- data/lib/tramway/admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e4a96b64368261ed89912fb6dedaea6287cdb0ea3ad62f50e5ccbc588b72f13
|
4
|
+
data.tar.gz: 6b1e2017923324a07d2ffe416a402c124072435fdd479cf756920a9b4c273594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 277ff75982d7477f665c2856f4c99f8d9b2cd7b8e65451a90acbf28942cfa93236ef32d5bbbad7a6360a4c8eb7655954c1aaef032f63b6c1bdb51a92b3677dd0
|
7
|
+
data.tar.gz: 88411026fd8eca854bbda92892728b2aae7190e1f89e78261e91683f220b8a72cf35f0d064ea22c296008f0b10ec5da0dc6ae6b314559c550989a9de10f234e0
|
@@ -47,16 +47,12 @@ module Tramway
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def value_from_params(model_class:, property:, type:)
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
else
|
58
|
-
params.dig(model_class.to_s.underscore, property.to_s)
|
59
|
-
end
|
50
|
+
case type
|
51
|
+
when :polymorphic_association, 'polymorphic_association'
|
52
|
+
{
|
53
|
+
id: params.dig(model_class.to_s.underscore, property.to_s),
|
54
|
+
type: params.dig(model_class.to_s.underscore, "#{property}_type")
|
55
|
+
}
|
60
56
|
else
|
61
57
|
params.dig(model_class.to_s.underscore, property.to_s)
|
62
58
|
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.4.
|
4
|
+
version: 1.18.4.2
|
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-11-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-kaminari-views
|