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 +4 -4
- data/app/views/tramway/core/shared/_input.html.haml +2 -0
- data/lib/tramway/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e501986748c5fcfe27092b525dcf97a9f8a591e9a00ea9659f150b746123d1
|
4
|
+
data.tar.gz: 840750721db0f18d04437cd3e840bcf311094aa044dc95cb9f1c50f2e520e516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/tramway/core/version.rb
CHANGED