changes to limit

This commit is contained in:
albert
2013-01-14 16:05:08 -05:00
parent 0cd009df24
commit 9872d3d455

View File

@@ -5,7 +5,7 @@ module PostSets
def initialize(tags, page = 1, per_page = nil)
@tag_array = Tag.scan_query(tags)
@page = page
@per_page = (per_page || Post.records_per_page).to_i
@per_page = (per_page || ::Post.records_per_page).to_i
@per_page = 200 if @per_page > 200
end