collate 0.1.11 → 0.1.12

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: 593a4c205af51bc2bfb88aab0a90e9d9a4b195b9
4
- data.tar.gz: 00f29c041a4f05a98304c5cef18650ac25f03dfb
3
+ metadata.gz: 98bf8cfb044cf4c1eda4f5aa29100568da217204
4
+ data.tar.gz: 06bfc83fd89c01626c900fef70522d4f6fec2d2e
5
5
  SHA512:
6
- metadata.gz: ea867cde9d5efd7bd51f834ae45158296d875b7fd736468522139a3e33a2c9b52408c26560a00872b04d80d215e47229dd8bb6abe5ee137a458b121b112a3927
7
- data.tar.gz: 9ba77b1bfbbf11141505e893659bae4f124c19eca0723a0d5018c914f2a164e2c2e10b611209d9ba3866185b610531666d47634edb7c30be8bd20baabe9856bc
6
+ metadata.gz: 9ea9e936a31ae527e54cf34786779d7b3c28fecfe9e3612bcfad1479b09cff1bafb9403ffbf8d74b17ea82f883376b0637131bb39c7bd4039bd56df69bb92a37
7
+ data.tar.gz: '039b34239160456a1981f4b3b48d5c7332371d33d45da1cbb13c2e32e108f6b28f5fb6764fef321f5e6fd0bf0487600e9130f856e0ba69c3a1e81c6c700567e7'
@@ -112,7 +112,11 @@ module Collate
112
112
  end
113
113
 
114
114
  ar_rel = if query_string.include?('?')
115
- ar_rel.send(ar_method, query_string, *filter_value)
115
+ if filter.or
116
+ ar_rel.send(ar_method, query_string, *filter_value)
117
+ else
118
+ ar_rel.send(ar_method, query_string, filter_value)
119
+ end
116
120
  else
117
121
  ar_rel.send(ar_method, query_string)
118
122
  end
@@ -1,3 +1,3 @@
1
1
  module Collate
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Page
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-20 00:00:00.000000000 Z
12
+ date: 2017-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler