Commit f2cee638 by tady

テンプレート作成時に「template」タグを除く

parent 8e979f81
......@@ -23,6 +23,7 @@ class PostsController < ApplicationController
def fork
@post = set_post.generate_fork(current_user)
@post.tags.destroy Tag.find_by(name: 'template')
render action: 'new'
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment