Use the adequate success path on the JSON endpoint.

I forgot to update this and some spinach specs were failing.
This commit is contained in:
Rubén Dávila 2016-02-18 18:24:53 -05:00 committed by Robert Speicher
parent b79c8b5228
commit cc5ff3b5a4
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module CreatesCommit
respond_to do |format|
format.html { redirect_to final_success_path(success_path) }
format.json { render json: { message: "success", filePath: success_path } }
format.json { render json: { message: "success", filePath: final_success_path(success_path) } }
end
else
flash[:alert] = result[:message]