easy_search_form 0.4.0 → 0.4.1

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: 4f43365cd0c27c216ac7cdc9d9486fb645c9e8a5
4
- data.tar.gz: fff9db69b0dccb86122275214152c91dcc47fc12
3
+ metadata.gz: 72558bcc2e129e04d7921c78823c21fe9ba91347
4
+ data.tar.gz: 5ecd0fceeb317e05e68a73e17b610e832c10560a
5
5
  SHA512:
6
- metadata.gz: c38cf298a2fccc48cc1a09ed5754e8d01f2b8f3fae30bc6334d64b8ae93eaacc0f1a0e4b0256fb5491906e5dcdaf880468f5fd8951e5210508c202058d681e93
7
- data.tar.gz: 8b2ca7e9c3bb3acf2aa245cf671b346edda9957bea804d16222fde3a0a495a83ee8c1fa6ba05ef99ca520e111ee49d0c40d6e9fa10990c6888e5c60a305db471
6
+ metadata.gz: 94e452d03aa9553c3144c511dab69076c6410f6c5040ca4ede29d96ba9599acba0e1ebe1ca76d42e2e1f317e88c634e8bfea9494a0033a72ee68e7b9e1a5255c
7
+ data.tar.gz: 4a5366b9e2b4fafac9cbb54c6b2bbdcadc373df9307c33babd5f4aab34851225168d368e9f369f1fd2ff1b4b3f094e2c45763fc9e173b1fd653bfe6601ee70e8
@@ -1,3 +1,3 @@
1
1
  module EasySearchForm
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -22,7 +22,6 @@ module EasySearchForm
22
22
  condition_type = nil
23
23
 
24
24
  if opt.instance_of?(Hash)
25
- debugger
26
25
  case opt[opt.keys.first]
27
26
  when :equals
28
27
  condition_type = "="
@@ -47,7 +46,7 @@ module EasySearchForm
47
46
 
48
47
  where(conditions)
49
48
  else
50
- all
49
+ where(nil)
51
50
  end
52
51
  end
53
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_search_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Cordeiro