summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-18 18:24:53 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-02-18 19:10:34 -0500
commit7d15095eaf4656d5688894e1e1068a1e594c96d9 (patch)
tree53772ccca7b8449efcb1ea5daad6bd6cd8f3ee4d
parent96f698aa2fefbb80258308adac0d0f70fe377234 (diff)
downloadgitlab-ce-issue_3409.tar.gz
Use the adequate success path on the JSON endpoint.issue_3409
I forgot to update this and some spinach specs were failing.
-rw-r--r--app/controllers/concerns/creates_commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/creates_commit.rb b/app/controllers/concerns/creates_commit.rb
index 4410e4d6505..787416c17ab 100644
--- a/app/controllers/concerns/creates_commit.rb
+++ b/app/controllers/concerns/creates_commit.rb
@@ -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]