sanitize document

This commit is contained in:
Andreas Stephanides
2015-04-29 16:07:39 +02:00
parent 19959b083e
commit 8a32bff399
4 changed files with 23 additions and 2 deletions

View File

@@ -24,7 +24,12 @@ class DocumentsController < ApplicationController
format.html
end
end
def sanitize
@document = Document.find(params[:id])
@document.sanitize
@parent=@document.parent
render :write
end
def show
@document = Document.find(params[:id])
respond_to do |format|