app/controllers/landable/api/templates_controller.rb in landable-1.13.2 vs app/controllers/landable/api/templates_controller.rb in landable-1.14.0

- old
+ new

@@ -49,13 +49,13 @@ end # custom methods def preview template = Template.new(template_params) - theme = Theme.most_used_on_pages + theme = Theme.most_used_on_pages - page = Page.example(theme: theme, body: template.body) + page = Page.example(theme: theme, body: template.body) content = generate_preview_for(page) respond_to do |format| format.html do @@ -70,10 +70,10 @@ private def template_params params.require(:template).permit(:id, :name, :body, :description, :thumbnail_url, - :slug, :is_layout, :is_publishable, + :slug, :is_layout, :is_publishable, :category_id, audit_flags: []) end def load_template @template = Template.find(params[:id])