cowtech-rails 1.9.0.1 → 1.9.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -218,7 +218,7 @@ module Cowtech
|
|
218
218
|
page = params[key]
|
219
219
|
page = if params[key].is_valid_integer? then params[key].to_integer else 1 end
|
220
220
|
page = 1 if page < 1
|
221
|
-
page = upperbound if (upperbound > 0
|
221
|
+
page = upperbound if (upperbound > 0 && page > upperbound)
|
222
222
|
page
|
223
223
|
end
|
224
224
|
|
data/lib/cowtech/version.rb
CHANGED