filter_form 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filter_form/input_options/base.rb +8 -1
- data/lib/filter_form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba51d29e8704d894da94e7f88229feef17ed3bfc
|
4
|
+
data.tar.gz: ddae4ac17d72019aaf3834b262dfbec3ac51c79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f3b727047056bca25cfe8aac65e956e0d5075bdcda74ea17c895d3004e216e976837518d15835028ffc2eeb9109127f768ac84782ec9da9362778386cf10d3
|
7
|
+
data.tar.gz: 93b278eb9cf40452f63cd08ca810ef9ec71ea656f414b25f33e659cf49f444edfc487f8b9e32542105e48271bb17bef3c02a77fef792602584be11f0909ec0c8
|
@@ -25,7 +25,14 @@ module FilterForm
|
|
25
25
|
def additional_input_options
|
26
26
|
result = { name: input_name, data: {} }
|
27
27
|
|
28
|
-
|
28
|
+
if input_class
|
29
|
+
if options[:input_html]
|
30
|
+
result[:class] = (options[:input_html].delete(:class) || '') << " #{ input_class }"
|
31
|
+
else
|
32
|
+
result[:class] = input_class
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
29
36
|
result[:data][:predicate_selector] = options[:predicate_selector] if options[:predicate_selector]
|
30
37
|
result[:data][:current_predicate] = current_predicate if current_predicate
|
31
38
|
|
data/lib/filter_form/version.rb
CHANGED