fix post version listing bug

This commit is contained in:
albert 2013-01-22 15:49:25 -05:00
parent 7fe919ea6a
commit 5754089c2b
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ div.comments-for-post {
div.content {
margin-left: 2em;
width: 30em;
width: 35em;
float: left;
menu {

View File

@ -67,7 +67,7 @@ module Danbooru
end
def records_per_page
(@paginator_options[:limit] || Danbooru.config.posts_per_page).to_i
(@paginator_options.try(:[], :limit) || Danbooru.config.posts_per_page).to_i
end
# taken from kaminari (https://github.com/amatsuda/kaminari)