corn_starch 1.1.24 → 1.1.25
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: 89b86b8ebe050d16fe9acfbec3dbc1728edc9ba6
|
4
|
+
data.tar.gz: ccb3b1c2763b15df8ff9d384e3a10de0a4336a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824cf18f97a44c11688344085697f16badb941750c82a4999122e0d02f693514c26f266f6d857baac722a459d7e3bc90280bd1ff707310408c49dcc4690ec450
|
7
|
+
data.tar.gz: 3c0dc4c363948b3484536ab6417953bf922c6ac562a44d1bd428f7b72ac3beb781adf2da1cbb573bb0a5abafecca2d162d5ee5123748363864d834ba6b5848bc
|
@@ -151,9 +151,6 @@ 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
|
-
|
157
154
|
# Compute Page Range
|
158
155
|
range_start = current - (CORNSTARCH_CONF[:pagination][:page_range] / 2)
|
159
156
|
range_start = 0 if range_start < 0
|
data/lib/corn_starch/version.rb
CHANGED