backframe 0.0.36 → 0.0.37
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: a5dc4894e2e9c7c46f973d3bc3f930cacc941d0c
|
4
|
+
data.tar.gz: 7c470b6d33b5bfd67965945446b6bebbe70f1c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 557ac5c9a0eaab81f78602a21ed1e675a4f2198edc01aa2d93f84163356e94a8e38bdb9512ed032fc208dd6b11578ab416731d5e5ce2dd3e10b7ed91ba41837c
|
7
|
+
data.tar.gz: 564a72e19e769d3752c62d7ee2fa91c06c31611f95a702ad796d613dd63011cf32b643171743ee778df7eaf2882001596dcbd5d96f99c747c814a3f6bb2040fd
|
@@ -10,7 +10,7 @@ module Backframe
|
|
10
10
|
conditions = []
|
11
11
|
params = []
|
12
12
|
fields.each do |field|
|
13
|
-
column = (field.match(/.*\..*/)) ? field : "
|
13
|
+
column = (field.match(/.*\..*/)) ? field : "\"#{self.table_name}\".\"#{field}\""
|
14
14
|
conditions << "LOWER(#{column}::VARCHAR) LIKE ?"
|
15
15
|
params << '%'+filters[:q].downcase+'%'
|
16
16
|
end
|
data/lib/backframe/version.rb
CHANGED