diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-10-16 14:45:30 +0400 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-10-16 14:45:30 +0400 |
commit | ad5a6a4ae1fa784b2a6ecac8cc9791e23ec8f134 (patch) | |
tree | a60992b8b69c4e69410fb28342980f261ab8825c /app | |
parent | 76e1ca64301d52fb25b0a0e8cb9d513ba7d33c46 (diff) |
Improve flash messages in tree#update
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/tree_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/tree_controller.rb b/app/controllers/tree_controller.rb index 475e2b61a18..2781d791cbd 100644 --- a/app/controllers/tree_controller.rb +++ b/app/controllers/tree_controller.rb @@ -34,9 +34,9 @@ class TreeController < ProjectResourceController ) if update_status - redirect_to project_tree_path(@project, @id), :notice => "File has been successfully changed" + redirect_to project_tree_path(@project, @id), notice: "Your changes have been successfully commited" else - flash[:notice] = "You can't save file because it has been changed" + flash[:notice] = "Your changes could not be commited, because the file has been changed" render :edit end end |