corn_starch 1.1.23 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8587f0750b957e7e40833d74be791226a908c6fc
|
4
|
+
data.tar.gz: 39fb10b8c886b213de5f929e65107348e0714fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9f883bec7121360e206406e8f4cca0cd22d96ff9ffd3013e45f13ae9b84f981502a26ed661b9ce7d7e681d3d1dfcc4b5d391e0f2f60486d1c7a3ccd2736d33
|
7
|
+
data.tar.gz: 8df11a7cf0f64065d2ae99386f35045446418444dbea8485a9b82abdb0183f0b22d31c741c04d6eae8be224cccc705e1c3ac1f57f5b18d267025bbdea45f2cef
|
@@ -151,6 +151,9 @@ module CornStarch
|
|
151
151
|
total = collection.count
|
152
152
|
@pagination[:pg_count] = (total / @pagination[:recs_per_page]) + (((total % @pagination[:recs_per_page]) > 0) ? 1 : 0)
|
153
153
|
|
154
|
+
# DEBUG
|
155
|
+
puts "================== PAGINATION : #{@pagination}"
|
156
|
+
|
154
157
|
# Compute Page Range
|
155
158
|
range_start = current - (CORNSTARCH_CONF[:pagination][:page_range] / 2)
|
156
159
|
range_start = 0 if range_start < 0
|
data/lib/corn_starch/version.rb
CHANGED