forest_liana 9.2.0 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/forest_liana/search_query_builder.rb +4 -9
- data/lib/forest_liana/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7950f2e96ebeda3d61bff3da6413a7a7a6491aae4cc2466dc64bf5ae418cf8
|
4
|
+
data.tar.gz: 1ef5d496127b6735d57e234ca1f29ba2f8fd8ff69202c075b3156538e288c847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5bef3334da8c10d574c899ae25d9bcdb2f693b775124c7cb6b9a03a0765e270f000815c7748420517dbd64286732602f82749f6c100351d3ac1d764c2b7209
|
7
|
+
data.tar.gz: 4a6b3c1c39c0d310b959268c755aed670b51f9208fdd49ea6792324efc80d1b7559c944f2510365cc6d1648ff58795b17c69673129bd11724895f0981ae40efb
|
@@ -160,12 +160,9 @@ module ForestLiana
|
|
160
160
|
end
|
161
161
|
|
162
162
|
def sort_query
|
163
|
-
column = nil
|
164
|
-
order = 'DESC'
|
165
|
-
|
166
163
|
if @params[:sort]
|
167
164
|
@params[:sort].split(',').each do |field|
|
168
|
-
order_detected = detect_sort_order(
|
165
|
+
order_detected = detect_sort_order(field)
|
169
166
|
order = order_detected.upcase
|
170
167
|
field.slice!(0) if order_detected == :desc
|
171
168
|
|
@@ -175,14 +172,12 @@ module ForestLiana
|
|
175
172
|
else
|
176
173
|
column = field
|
177
174
|
end
|
175
|
+
|
176
|
+
@records = @records.order(Arel.sql("#{column} #{order}"))
|
178
177
|
end
|
179
178
|
end
|
180
179
|
|
181
|
-
|
182
|
-
@records = @records.order(Arel.sql("#{column} #{order}"))
|
183
|
-
else
|
184
|
-
@records
|
185
|
-
end
|
180
|
+
@records
|
186
181
|
end
|
187
182
|
|
188
183
|
def detect_reference(param)
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: json-jwt
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.
|
173
|
+
version: 1.16.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.
|
180
|
+
version: 1.16.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: openid_connect
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|