app/controllers/landable/api/templates_controller.rb in landable-1.9.0.rc1 vs app/controllers/landable/api/templates_controller.rb in landable-1.9.0.rc2

- old
+ new

@@ -47,17 +47,17 @@ respond_with @template end private - def load_template - @template = Template.find(params[:id]) - end - def template_params - params.require(:template).permit(:id, :name, :body, :description, :thumbnail_url, :slug, :is_layout, :is_publishable) + params.require(:template).permit(:id, :name, :body, :description, :thumbnail_url, + :slug, :is_layout, :is_publishable, + audit_flags: []) end - # end + def load_template + @template = Template.find(params[:id]) + end end end end