snaptable 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snaptable/constructor/collection.rb +1 -1
- data/lib/snaptable/rails/version.rb +1 -1
- data/lib/snaptable/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: 2339f0f7b493a670cd591d36004606f8c340c802
|
4
|
+
data.tar.gz: 5a3375be3f93ec52bd933df82f1c3059dac7dc3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c5bf26d5ac708709af7d59419bda846dbb9a91ab599dd06e2b6ae28663e0fce87fdc9b36251f4960c8743645717d9d1f7a2ab2dcf5531734a7ae90ed4e6c269
|
7
|
+
data.tar.gz: 97e9d96a8dfafe89f34fba22299af4aacb0b1a8ab00aab7d9258269484448cd93dbe8b1c3d82cdb14ae9ea62e8396d702af3a8d9ed831c1cfcfcf8a4349b88e0
|
@@ -15,7 +15,7 @@ module Snaptable
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def filter(collection)
|
18
|
-
if options[:search] == true
|
18
|
+
if options[:search] == true && !params[:query].blank?
|
19
19
|
collection.joins(search_associations).where(query, query: "%#{params[:query]}%", id: params[:query].to_i)
|
20
20
|
else
|
21
21
|
collection
|
data/lib/snaptable/version.rb
CHANGED