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
581 581
    limit = options[:limit].to_i
582 582
    if limit < 1
583 583
      limit = 25
584
    elsif limit > 100
585
      limit = 100
584
    elsif limit > 500
585
      limit = 500
586 586
    end
587 587
    if offset.nil? && options[:page].present?
588 588
      offset = (options[:page].to_i - 1) * limit
    (1-1/1)