fix tests and typo bugs

This commit is contained in:
albert
2013-03-22 18:54:37 -04:00
parent ec50911a52
commit a4b67fa072
9 changed files with 53 additions and 68 deletions

View File

@@ -349,7 +349,9 @@ class User < ActiveRecord::Base
end
def set_per_page
self.per_page = Danbooru.config.posts_per_page unless is_privileged?
if per_page.nil? || !is_privileged?
self.per_page = Danbooru.config.posts_per_page
end
end
end