tramway-core 4.0.1 → 4.0.1.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 +4 -1
- 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: d97bc6473e7518d3f69d5aa23b445097361723523401b62dd0c8218ab0e6f806
|
4
|
+
data.tar.gz: e0c120b4e8865bbb09404330955cb038d7435cbc7fd7c13c11ca9aaefd494c6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3cd1dd1a2a5ab4e441355627658f26a905005d20c77dc99ae9759037d7b2e5d6e36db2b4637c7053de21bf121e2e30af36ca42c590b2778f6df9d45acfa809
|
7
|
+
data.tar.gz: aebb6bf91fa3b3ada3575d5cc38d8e2d1fbd99b82df8a6d2653b437208fa0c32f638e14fdde964eab5bb033352449318d137f06768c721f0a805daebebee7f11
|
@@ -14,7 +14,10 @@
|
|
14
14
|
- when :association
|
15
15
|
= form.association property, **association_params(**input_params)
|
16
16
|
- when :hidden_association
|
17
|
-
|
17
|
+
- if form_object.public_send(property)&.id
|
18
|
+
= form.association property, **association_params(**input_params).merge(as: :hidden, input_html: { value: form_object.public_send(property)&.id })
|
19
|
+
- else
|
20
|
+
= form.association property, **association_params(**input_params).merge(as: :hidden)
|
18
21
|
- when :polymorphic_association
|
19
22
|
= form.input property, **polymorphic_association_params(**input_params.merge(value: value))
|
20
23
|
- else
|
data/lib/tramway/core/version.rb
CHANGED