fix pools
This commit is contained in:
@@ -49,6 +49,10 @@ module PostSets
|
|||||||
(pool.post_count.to_f / limit).ceil
|
(pool.post_count.to_f / limit).ceil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def size
|
||||||
|
posts.size
|
||||||
|
end
|
||||||
|
|
||||||
def current_page
|
def current_page
|
||||||
[page.to_i, 1].max
|
[page.to_i, 1].max
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user