app/controllers/knitkit/erp_app/desktop/website_controller.rb in knitkit-2.1.1 vs app/controllers/knitkit/erp_app/desktop/website_controller.rb in knitkit-2.1.2
- old
+ new
@@ -144,11 +144,9 @@
end
def export
zip_path = @website.export
send_file(zip_path.to_s, :stream => false) rescue raise "Error sending #{zip_path} file"
- ensure
- FileUtils.rm_r File.dirname(zip_path) rescue nil
end
# TODO add role restriction to this
def import
result, message = Website.import(params[:website_data], current_user)