tramway-core 4.0.0.1 → 4.0.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: 8890a9c13beaa7437586235ea24169dfd400bac802f1e09e02b3f00482b56353
4
- data.tar.gz: 5b19c2fe614f4ec053c661e4fd6f65479d4987f8fe9731c930a0b923769c8df6
3
+ metadata.gz: 60e501986748c5fcfe27092b525dcf97a9f8a591e9a00ea9659f150b746123d1
4
+ data.tar.gz: 840750721db0f18d04437cd3e840bcf311094aa044dc95cb9f1c50f2e520e516
5
5
  SHA512:
6
- metadata.gz: f61ca8ebb144658a152920461dabb7423cfc66418e124ab6973a80aa960a8365d9a027edbb2df5385ee33ba559ec2e89df423d8a3c1e781d2c60d52049d2a2a1
7
- data.tar.gz: a57f6625750a1c6b528e461f1f2269bcdd7f302d046b00a8a7426c45aa7cf203082bb3fcaf7eece3871ca557fd307edc9120141f70a0521f85ec92b12fbe5b7d
6
+ metadata.gz: 341c866e0797198604e6edc1f5275b0b0636e1b24635b5c5a019050f1ee86f46eb664fee80256170db9e41219d926c004bdc7368d32e8afafec417c6595e0b87
7
+ data.tar.gz: fb50c72df380f9c9bc23564414c06131444b838ea9e6810a0decf083add8a6234283ac83405d539360190282d5123ec7c7ecac2d8e3e206368339c2c9d9b29d2
@@ -13,6 +13,8 @@
13
13
  = form.input property, **default_params(**input_params)
14
14
  - when :association
15
15
  = form.association property, **association_params(**input_params)
16
+ - when :hidden_association
17
+ = form.association property, **association_params(**input_params).merge(as: :hidden, input_html: { value: value || form_object.public_send(property).id })
16
18
  - when :polymorphic_association
17
19
  = form.input property, **polymorphic_association_params(**input_params.merge(value: value))
18
20
  - else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '4.0.0.1'
5
+ VERSION = '4.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.1
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov