fix counts

This commit is contained in:
albert
2013-03-22 21:18:13 -04:00
parent 6f5c29df37
commit ee1a70033c
8 changed files with 21 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ module Danbooru
def option_for(key)
case key
when :limit
limit = @paginator_options.try(:[], :limit) || CurrentUser.user.per_page
limit = @paginator_options.try(:[], :limit) || Danbooru.config.posts_per_page
if limit.to_i > 1_000
limit = 1_000
end