app/controllers/myreplicator/exports_controller.rb in myreplicator-1.1.7 vs app/controllers/myreplicator/exports_controller.rb in myreplicator-1.1.9

- old
+ new

@@ -43,12 +43,10 @@ def edit @export = Export.find(params[:id]) @dbs = get_dbs @tables = db_metadata @edit = true - - Myreplicator::Export.schedule_in_resque # schedule in resque end # POST /exports # POST /exports.json def create @@ -68,17 +66,16 @@ # PUT /exports/1 # PUT /exports/1.json def update @export = Export.find(params[:id]) - Myreplicator::Export.schedule_in_resque # schedule in resque - @dbs = get_dbs respond_to do |format| if @export.update_attributes(params[:export]) format.html { redirect_to @export, notice: 'Export was successfully updated.' } format.json { head :no_content } + Myreplicator::Export.schedule_in_resque # schedule in resque else format.html { render action: "edit" } format.json { render json: @export.errors, status: :unprocessable_entity } end end