This commit is contained in:
albert
2013-02-19 21:57:25 -05:00
parent 1a4b5782ea
commit 5202ee42f6
6 changed files with 7 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ module PostSets
def initialize(params)
# don't call super because we don't want to repeat these queries
@tag_array = Tag.scan_query(params[:tags])
@page = params[:page]
@page = params[:page] || 1
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page)
end
end