filter_form 0.4.2 → 0.4.3

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: a83442fb7f60aefce93393a49763bb4d66495b6e
4
- data.tar.gz: 2ded8529b6e92cecce469d4b33b5153627e8a3b7
3
+ metadata.gz: dd311392d40b8a5fb6ffd62044f2425cd1d6a352
4
+ data.tar.gz: da2e2681ca34032ce080504dd33e595c04cd1fea
5
5
  SHA512:
6
- metadata.gz: 9a5c647796b8f95a916084c1ebe3268677c26a496e106576ef6634b45eb72782e22a502aeeabfd37e9fc716f43cbf457dae5447338ef9786b27a9e59bdc326b3
7
- data.tar.gz: b3982e9af2e8457750805d14a0be2418aa1e2419eeac7e7d8ffc61f85cb4b0b2a3a5d24875fff1911224c593e59298d7f0680c0eaaba27a2f3c6fabde5fe7647
6
+ metadata.gz: 21dce163437993123bbf88198e980f736911d74394f1501efbcaac3397d421b0684684d05ab5a6e83e91d88dd86e91388055c6a7dc8a54378a76949fe917d940
7
+ data.tar.gz: fb9005fd217ed6f10ae248cda5323ff496dacf86b656af9b04f03292c62450f39eea496792845b1069dbe59818280585a1dc11b2f817bbedfc3f0fe014a50117
@@ -33,7 +33,11 @@ module FilterForm
33
33
  end
34
34
 
35
35
  def current_predicate
36
- object.base.conditions.first.predicate.name if object.base.conditions.any?
36
+ if object.base.conditions.any?
37
+ object.base.conditions.first.predicate.name
38
+ elsif options[:predicate_selector]
39
+ predicate
40
+ end
37
41
  end
38
42
 
39
43
  def input_class
@@ -1,3 +1,3 @@
1
1
  module FilterForm
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Li