remove debugging letfovers

This commit is contained in:
Régis Hanol 2015-05-26 20:08:19 +02:00
parent 364437da28
commit 992154533f
1 changed files with 0 additions and 2 deletions

View File

@ -39,8 +39,6 @@ class UploadsController < ApplicationController
data = upload.errors.empty? ? upload : { errors: upload.errors.values.flatten } data = upload.errors.empty? ? upload : { errors: upload.errors.values.flatten }
MessageBus.publish("/uploads/#{type}", data.as_json, user_ids: [current_user.id]) MessageBus.publish("/uploads/#{type}", data.as_json, user_ids: [current_user.id])
rescue => e
pp e
ensure ensure
tempfile.try(:close!) rescue nil tempfile.try(:close!) rescue nil
end end