fix Pool#page_number

This commit is contained in:
Toks
2013-06-23 13:58:17 -04:00
parent 2af3f48f50
commit 8f2d464c03

View File

@@ -168,7 +168,7 @@ class Pool < ActiveRecord::Base
end
def page_number(post_id)
post_id_array.find_index(post_id) + 1
post_id_array.find_index(post_id).to_i + 1
end
def deletable_by?(user)