fix pools

This commit is contained in:
albert
2013-02-27 00:30:59 -08:00
parent a73103c2cb
commit e0f9f1d31a

View File

@@ -49,6 +49,10 @@ module PostSets
(pool.post_count.to_f / limit).ceil
end
def size
posts.size
end
def current_page
[page.to_i, 1].max
end