forked from e621ng/e621ng
bug fix
This commit is contained in:
parent
966962cf80
commit
60f2a06eee
@ -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)
|
||||
@ -66,7 +66,7 @@ module Danbooru
|
||||
|
||||
def records_per_page
|
||||
# ugly hack but no easy way to pass this info down
|
||||
(@paginator_options[:limit] || Thread.current["records_per_page"] || Danbooru.config.posts_per_page).to_i
|
||||
(Thread.current["records_per_page"] || @paginator_options[:limit] || Danbooru.config.posts_per_page).to_i
|
||||
end
|
||||
|
||||
# taken from kaminari (https://github.com/amatsuda/kaminari)
|
||||
|
Loading…
Reference in New Issue
Block a user