Add proper body_markdown back in

This commit is contained in:
Ben Halpern 2018-07-27 21:02:14 -07:00
parent 0f3342bcec
commit 1c3331d77f

View file

@ -47,8 +47,15 @@ class ArticlesController < ApplicationController
processed_html: "")
else
skip_authorization
Article.new
end
if params[:state] == "v2" || Rails.env.development?
Article.new
else
Article.new(
body_markdown: "---\ntitle: \npublished: false\ndescription: \ntags: \n---\n\n",
processed_html: "",
)
end
end
end
def edit