Skip to content
Snippets Groups Projects
Commit 5b9bb9ae authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Redirect to known route instead of :back

parent 0a139064
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment