diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 23:10:27 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 23:10:27 +0100 |
commit | 6f714dfb4a9b823ab75508f252d06e19e286d5f2 (patch) | |
tree | 409569ad65f1982451d9eb9a5bb0eae078abf01a /app/controllers/profiles | |
parent | 2749e7a58285e59381a3e788983678d9cf633b45 (diff) | |
download | gitlab-ce-6f714dfb4a9b823ab75508f252d06e19e286d5f2.tar.gz |
Improve code design after code review
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/chat_names_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/profiles/chat_names_controller.rb b/app/controllers/profiles/chat_names_controller.rb index 0d3bdeff416..7f9c8e64cca 100644 --- a/app/controllers/profiles/chat_names_controller.rb +++ b/app/controllers/profiles/chat_names_controller.rb @@ -13,7 +13,7 @@ class Profiles::ChatNamesController < Profiles::ApplicationController new_chat_name = current_user.chat_names.new(chat_name_params) if new_chat_name.save - flash[:notice] = "Authorized chat nickname #{new_chat_name.chat_name}" + flash[:notice] = "Authorized #{new_chat_name.chat_name}" else flash[:alert] = "Could not authorize chat nickname. Try again!" end @@ -34,7 +34,7 @@ class Profiles::ChatNamesController < Profiles::ApplicationController @chat_name = chat_names.find(params[:id]) if @chat_name.destroy - flash[:notice] = "Delete chat nickname: #{@chat_name.chat_name}!" + flash[:notice] = "Deleted chat nickname: #{@chat_name.chat_name}!" else flash[:alert] = "Could not delete chat nickname #{@chat_name.chat_name}." end |