Commit cc5ff3b5 authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher

Use the adequate success path on the JSON endpoint.

I forgot to update this and some spinach specs were failing.
parent b79c8b52
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment