fixes to limit

This commit is contained in:
albert
2013-01-14 16:38:33 -05:00
parent 60f2a06eee
commit c327653394
5 changed files with 4 additions and 7 deletions

View File

@@ -1,10 +1,7 @@
module PostSetPresenters
class WikiPage < Post
def posts
Thread.current["records_per_page"] = 4
@post_set.posts
ensure
Thread.current["records_per_page"] = nil
end
end
end