This commit is contained in:
albert
2013-02-23 11:55:11 -05:00
parent f2bdd7557f
commit 3967cf7343
4 changed files with 23 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class ForumTopic < ActiveRecord::Base
end
def last_page
(posts.count / Danbooru.config.posts_per_page.to_f).ceil
((posts.count + 1) / Danbooru.config.posts_per_page.to_f).ceil
end
def presenter(forum_posts)