This commit is contained in:
albert
2011-07-03 19:12:31 -04:00
parent bd3af50e10
commit 085995126c
16 changed files with 176 additions and 78 deletions

View File

@@ -52,7 +52,7 @@ module Danbooru
page = [page.to_i, 1].max
if page > Danbooru.config.max_numbered_pages
raise Error.new("You cannot go beyond page #{Danbooru.config.max_numbered_pages}. Please narrow your search terms.")
raise "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|

View File

@@ -1,6 +0,0 @@
module Danbooru
module Paginator
class Error < Exception
end
end
end