This commit is contained in:
albert
2013-03-02 21:23:37 -05:00
parent b3ab52e889
commit 3a262d0d50
3 changed files with 17 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class UploadsController < ApplicationController
def create
@upload = Upload.create(params[:upload].merge(:server => Socket.gethostname))
@upload.process!
@upload.process! if @upload.errors.empty?
respond_with(@upload)
end