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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d289cfd16d5f3e35a9c0c1ca57b6515d909b0cf41ee718235cb670fa8b14fd9
4
- data.tar.gz: b587fade8d1c6b67c8132a42c5dfcaec5ed1f384b983f85ee3129fb5b98fe61a
3
+ metadata.gz: 2e4a96b64368261ed89912fb6dedaea6287cdb0ea3ad62f50e5ccbc588b72f13
4
+ data.tar.gz: 6b1e2017923324a07d2ffe416a402c124072435fdd479cf756920a9b4c273594
5
5
  SHA512:
6
- metadata.gz: 671124503d4a2df4645e26d0c5b089b4e05daa14ef95fbef15c7c17a8827cb647b1013f5864b10ed2466a97c3b782f00f6292842acbf5734c4e0e91a925a9ffe
7
- data.tar.gz: 2dd85fb8756146fabb5adb9a6f5f383371317f6069cc17639dffbcd50d16895dddfa8069c658c628a2014e71370900d4b59cd860ce3d72f5079213e77f1c79ed
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
- if type.is_a? Symbol
51
- case type
52
- when :polymorphic_association
53
- {
54
- id: params.dig(model_class.to_s.underscore, property.to_s),
55
- type: params.dig(model_class.to_s.underscore, "#{property}_type")
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '1.18.4.1'
5
+ VERSION = '1.18.4.2'
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.4.1
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 00:00:00.000000000 Z
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