diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-21 12:30:51 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-21 12:30:51 +0100 |
commit | 5b9bb9aeef59d9eb1214da6a731653fdf96162c0 (patch) | |
tree | ec307b569acc48c81d9934b42de9b27cff96b7e8 | |
parent | 0a1390641ef9c5599d7c9ddc54be47e0a6cb9810 (diff) | |
download | gitlab-ci-5b9bb9aeef59d9eb1214da6a731653fdf96162c0.tar.gz |
Redirect to known route instead of :back
-rw-r--r-- | app/controllers/variables_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/variables_controller.rb b/app/controllers/variables_controller.rb index afc33c7..00f60f3 100644 --- a/app/controllers/variables_controller.rb +++ b/app/controllers/variables_controller.rb @@ -13,7 +13,7 @@ class VariablesController < ApplicationController if project.update_attributes(project_params) EventService.new.change_project_settings(current_user, project) - redirect_to :back, notice: 'Variables were successfully updated.' + redirect_to project_variables_path(project), notice: 'Variables were successfully updated.' else render action: 'show' end |