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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c08b76b2e7101b1b8682968e4a7f5e4e54831e6
4
- data.tar.gz: d12f44b2389e601f09f368ac066e9455603e2820
3
+ metadata.gz: ba51d29e8704d894da94e7f88229feef17ed3bfc
4
+ data.tar.gz: ddae4ac17d72019aaf3834b262dfbec3ac51c79e
5
5
  SHA512:
6
- metadata.gz: 6df7c9488776eb6ccc07381206af051dd02082cc4aa4172a88fb186398bc339f03563450b4a90815c591ab046dc4f54e475b00febf59d1ed1896d0ed9ae732ed
7
- data.tar.gz: fe7539a80b31979f79dc426cb5c6e78526d0335b38dcf57a61cf2b96effa24c7d25b3e1c0a694707b7f8e507ab755860c584cf818e46da11b03d6ce83b94b5af
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
- result[:class] = input_class if input_class
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
 
@@ -1,3 +1,3 @@
1
1
  module FilterForm
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filter_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Li