Files
danbooru/app/logical/post_sets/note.rb
2013-02-20 22:40:33 -05:00

11 lines
333 B
Ruby

module PostSets
class Note < Post
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] || 1
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page).reorder("last_noted_at desc")
end
end
end