Commit ad5a6a4ae1fa784b2a6ecac8cc9791e23ec8f134
1 parent
76e1ca64
Exists in
master
and in
4 other branches
Improve flash messages in tree#update
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/tree_controller.rb
... | ... | @@ -34,9 +34,9 @@ class TreeController < ProjectResourceController |
34 | 34 | ) |
35 | 35 | |
36 | 36 | if update_status |
37 | - redirect_to project_tree_path(@project, @id), :notice => "File has been successfully changed" | |
37 | + redirect_to project_tree_path(@project, @id), notice: "Your changes have been successfully commited" | |
38 | 38 | else |
39 | - flash[:notice] = "You can't save file because it has been changed" | |
39 | + flash[:notice] = "Your changes could not be commited, because the file has been changed" | |
40 | 40 | render :edit |
41 | 41 | end |
42 | 42 | end | ... | ... |