changes to limit

This commit is contained in:
albert 2013-01-14 16:09:19 -05:00
parent 9872d3d455
commit 966962cf80
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ module PostSets
def initialize(tags, page = 1, per_page = nil)
@tag_array = Tag.scan_query(tags)
@page = page
@per_page = (per_page || ::Post.records_per_page).to_i
@per_page = (per_page || Danbooru.config.posts_per_page).to_i
@per_page = 200 if @per_page > 200
end

View File

@ -7,7 +7,7 @@ module Danbooru
module ClassMethods
def paginate(page, options = {})
@paginator_options = options
@paginator_options = options || {}
if use_sequential_paginator?(page)
paginate_sequential(page)