corn_starch 1.1.26 → 1.1.27
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: e66e5281d787644f3c1586e7963aabb4ec389c99
|
4
|
+
data.tar.gz: d2882d2a7063215dd9e3022557a0841a08a30ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d6e139d18b9e60f428fc70e785e0051f0f4105a2fea078d9451c8c46d3db00da05b056ec9db6da065ad6adaf9cf6a545155ff22302a81c3299723edca220480
|
7
|
+
data.tar.gz: 86ce52486d44c59276878982208857e6afc3f1fc6e60cabaa53cb5c53b6b6917a88473883363ee7c0b05893a5840e882f3715f559d315a5bf23a059faad84704
|
@@ -61,7 +61,7 @@ module CornStarch
|
|
61
61
|
@pagination[:recs_per_page] = (session[:pagination][:recs_per_page] || CORNSTARCH_CONF[:pagination][:records_per_page][:default]).to_i
|
62
62
|
|
63
63
|
# DEBUG
|
64
|
-
puts "================== FILTER : #{@pagination}"
|
64
|
+
puts "================== FILTER : #{@pagination.inspect}"
|
65
65
|
|
66
66
|
end
|
67
67
|
|
@@ -156,7 +156,7 @@ module CornStarch
|
|
156
156
|
@pagination[:pg_count] = (total / @pagination[:recs_per_page]) + (((total % @pagination[:recs_per_page]) > 0) ? 1 : 0)
|
157
157
|
|
158
158
|
# DEBUG
|
159
|
-
puts "================== PAGINATION : #{@pagination}"
|
159
|
+
puts "================== PAGINATION : #{@pagination.inspect}"
|
160
160
|
|
161
161
|
# Compute Page Range
|
162
162
|
range_start = current - (CORNSTARCH_CONF[:pagination][:page_range] / 2)
|
@@ -14,6 +14,9 @@ CORNSTARCH_CONF = YAML::load_file CORNSTARCH_CONF_FILE if File.exist? CORNSTARCH
|
|
14
14
|
CORNSTARCH_CONF ||= {}
|
15
15
|
CORNSTARCH_CONF.deep_symbolize_keys!
|
16
16
|
|
17
|
+
# DEBUG
|
18
|
+
puts "=========== CONFIG (loaded from file) : #{CORNSTARCH_CONF.inspect}"
|
19
|
+
|
17
20
|
######################
|
18
21
|
# Configure Defaults #
|
19
22
|
######################
|
data/lib/corn_starch/version.rb
CHANGED