summaryrefslogtreecommitdiff
path: root/app/controllers/profiles_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-26 23:24:17 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-26 23:24:17 +0300
commit8fee5a0572372b1d3a69fa1816380eb11182afaf (patch)
treefc55e8387fc298d874629faaf3c4f3a4260d7164 /app/controllers/profiles_controller.rb
parent2acde87e0d223bbc3ecd15777b9a1048d6bc5172 (diff)
downloadgitlab-ce-8fee5a0572372b1d3a69fa1816380eb11182afaf.tar.gz
Make app works with strong params
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r--app/controllers/profiles_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index f7c9651d050..e877f9b9049 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -14,7 +14,7 @@ class ProfilesController < ApplicationController
end
def update
- user_params.delete(:email) if @user.ldap_user?
+ user_params.except!(:email) if @user.ldap_user?
if @user.update_attributes(user_params)
flash[:notice] = "Profile was successfully updated"