caboose-cms 0.3.59 → 0.3.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/models/caboose/page_bar_generator.rb +17 -4
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZDNjNzU4MWUxM2VhNDcyOTcwOTcyOTFhMGM1M2JiNGFhOWIxMWY1Mg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MWEyYTdkNDFiNDY2MTI0M2VlYzI5MTlhNDYyYzYxMDFhZTRlMmE4Nw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ODg1OGU4OWU3NTY1MGU0MjZlYzNkYzQxNDI5YTc0NTg5YzlmODY1Y2IzNzI5
|
|
10
|
+
MTI2ZmZjMWFkOGI1ZjJiOTk5Mjc5ZjMxYTIxMzgxMTk4YjhlZjMxYjdkOTEw
|
|
11
|
+
OWVjODBiZjY2Y2Q4YTlkZDRjYWFhODFhYTY4YzQ4ZDU4YjA1NDc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OGJiODRmOGM5YWQwMzNiNWM3N2EzY2JjZTJjMzk4ZjAyZGM0MTE0NTk0ZWFj
|
|
14
|
+
YjU3ZDFiYmZhZTk1NWIzZjhiNjk2NzJiNDkxZjA0ZTA2ZDkwNjBkZTk1OGM5
|
|
15
|
+
ZjBmZGQ4NTkxMTM4ZDEwNjIxNTdiZTI2ZjE5Y2M5YTU1Nzk3ZTU=
|
|
@@ -31,6 +31,7 @@ module Caboose
|
|
|
31
31
|
|
|
32
32
|
# Note: a few keys are required:
|
|
33
33
|
# base_url, page, itemCount, itemsPerPage
|
|
34
|
+
@orginal_params = {}
|
|
34
35
|
@params = {}
|
|
35
36
|
@options = {
|
|
36
37
|
'model' => '',
|
|
@@ -48,8 +49,11 @@ module Caboose
|
|
|
48
49
|
# search_field_2 => [association_name, join_table, column_name]
|
|
49
50
|
# }
|
|
50
51
|
}
|
|
51
|
-
params.each
|
|
52
|
-
|
|
52
|
+
params.each { |key, val|
|
|
53
|
+
@original_params[key] = val
|
|
54
|
+
@params[key] = val
|
|
55
|
+
}
|
|
56
|
+
options.each { |key, val| @options[key] = val }
|
|
53
57
|
|
|
54
58
|
#@params.each { |key, val|
|
|
55
59
|
# k = @options['abbreviations'].include?(key) ? @options['abbreviations'][key] : nil
|
|
@@ -313,8 +317,17 @@ module Caboose
|
|
|
313
317
|
arr[arr.count-1] = arr[arr.count-1][0..-4] if k.ends_with?('_lt')
|
|
314
318
|
arr[arr.count-1] = arr[arr.count-1][0..-4] if k.ends_with?('_bw')
|
|
315
319
|
arr[arr.count-1] = arr[arr.count-1][0..-4] if k.ends_with?('_ew')
|
|
316
|
-
arr[arr.count-1] = arr[arr.count-1][0..-6] if k.ends_with?('_like')
|
|
317
|
-
|
|
320
|
+
arr[arr.count-1] = arr[arr.count-1][0..-6] if k.ends_with?('_like')
|
|
321
|
+
arr2 = []
|
|
322
|
+
arr.each do |col|
|
|
323
|
+
if @options['includes'] && @options['includes'].include?(col)
|
|
324
|
+
arr3 = @options['includes'][col]
|
|
325
|
+
arr2 << "#{table_name_of_association(arr3[0])}.#{arr3[1]}"
|
|
326
|
+
else
|
|
327
|
+
arr2 << col
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
col = "concat(#{arr2.join(",' ',")})"
|
|
318
331
|
end
|
|
319
332
|
|
|
320
333
|
sql2 = ""
|
data/lib/caboose/version.rb
CHANGED