wobapphelpers 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wobapphelpers/helpers/polymorphic_helper.rb +2 -0
- data/lib/wobapphelpers/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: e196f7d0a068fe3fe325831f98e9037e707052394d1de94096a8618f78acc17e
|
4
|
+
data.tar.gz: 1a5d2d9cb3d58ee2ca1a22065ae047ed643f510aef9fc3ed74715ba773f2b43f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc06442f8d7328515e162a59a08add728641b5485845bffbe3f016debc0b30091be2ddc9cfd687021388ac2f793204db204225edce736fb42b7ca2ae030d3f5
|
7
|
+
data.tar.gz: 814edeba04e40365b2059520b875c3b9395f67a273103be074410050070cbc19ed1b9308f1923b52e2bc0b0f20a0c7199a47f648f1294b343d68a93e9b33a758
|
@@ -7,6 +7,8 @@ module Wobapphelpers
|
|
7
7
|
if form.object.send(poly).present?
|
8
8
|
msg += poly_type_display(form, poly)
|
9
9
|
msg += poly_id_select(form, poly, form.object.send("#{poly}_type"), :all, options)
|
10
|
+
elsif types.size == 0
|
11
|
+
# empty
|
10
12
|
elsif types.size == 1
|
11
13
|
msg += poly_type_display(form, poly, Array(types).first)
|
12
14
|
msg += poly_id_select(form, poly, Array(types).first, :all, options)
|