backframe 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backframe/activerecord/filter_sort.rb +1 -1
- data/lib/backframe/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: 7c08222333120f8ddb4658a7a589992273f5478f
|
4
|
+
data.tar.gz: 6c0f8a8233ad2722f4c5dd46087598c638cf2031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 919db8249dd9811691aad06a271f3dbce8e264950645d555f63ab75503cc9b4dc47aac1e9c606a4c0cbb5d0fab466bb175b1e1ace0f792e7b7b7ac67aee16058
|
7
|
+
data.tar.gz: 2fb9992bfdba1cabd6f4ceb34be8e6843684ccafc44c0a3cf1892fb94df88a979d751467808b1c1ceab5f9c3dfb975bc69cabfd437cc7e174cc86190bbbc1378
|
@@ -11,7 +11,7 @@ module Backframe
|
|
11
11
|
params = []
|
12
12
|
fields.each do |field|
|
13
13
|
column = (field.match(/.*\..*/)) ? field : "LOWER(\"#{self.table_name}\".\"#{field}\""
|
14
|
-
conditions << "#{column}::VARCHAR) LIKE ?"
|
14
|
+
conditions << "LOWER(#{column}::VARCHAR) LIKE ?"
|
15
15
|
params << '%'+filters[:q].downcase+'%'
|
16
16
|
end
|
17
17
|
args = params.unshift(conditions.join(' OR '))
|
data/lib/backframe/version.rb
CHANGED