Project

General

Profile

Feature #26553 ยป limit-patch.diff

Michael Gerz, 2017-07-27 17:46

View differences:

application_controller.rb 2017-07-26 14:39:39.971434820 +0200
limit = options[:limit].to_i
if limit < 1
limit = 25
elsif limit > 100
limit = 100
elsif limit > 500
limit = 500
end
if offset.nil? && options[:page].present?
offset = (options[:page].to_i - 1) * limit
    (1-1/1)