bug fix
This commit is contained in:
@@ -54,7 +54,7 @@ module Danbooru
|
||||
page = [page.to_i, 1].max
|
||||
|
||||
if page > Danbooru.config.max_numbered_pages
|
||||
raise PaginationError.new("You cannot go beyond page #{Danbooru.config.max_numbered_pages}. Please narrow your search terms.")
|
||||
raise ::Danbooru::Paginator::PaginationError.new("You cannot go beyond page #{Danbooru.config.max_numbered_pages}. Please narrow your search terms.")
|
||||
end
|
||||
|
||||
limit(records_per_page).offset((page - 1) * records_per_page).tap do |obj|
|
||||
|
||||
Reference in New Issue
Block a user