This commit is contained in:
Toks
2015-05-13 18:25:01 -04:00
parent 90a1694f62
commit 8c63bf5b72
5 changed files with 55 additions and 0 deletions

View File

@@ -122,6 +122,12 @@ class PostsController < ApplicationController
redirect_to post_path(@post, :tags => params[:tags])
end
def mark_as_translated
@post = Post.find(params[:id])
@post.mark_as_translated(params[:post])
respond_with(@post)
end
private
def tag_query
params[:tags] || (params[:post] && params[:post][:tags])