added legacy api for posts

This commit is contained in:
albert
2011-12-22 12:39:27 -05:00
parent 67264f8a51
commit 7aca7f3e2f
5 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class LegacyController < ApplicationController
def posts
@post_set = PostSets::Post.new(tag_query, params[:page])
@posts = @post_set.posts
end
private
def tag_query
params[:tags] || (params[:post] && params[:post][:tags])
end
end