Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Kvitinskii <aleksei.kvitinskii@active.by>2011-10-20 02:34:05 +0400
committerAleksei Kvitinskii <aleksei.kvitinskii@active.by>2011-10-20 02:34:05 +0400
commit59704f481e742710fff32c733047eb84478e505e (patch)
treed837909ea9b6e1387c71de5ef2c2ae568323f28c /app/controllers/profile_controller.rb
parent9ad444f02efbeb30365cdf7f23f9b2f846b45a03 (diff)
extended user profile with social fields
Diffstat (limited to 'app/controllers/profile_controller.rb')
-rw-r--r--app/controllers/profile_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb
index 666c6309dce..c8477729a92 100644
--- a/app/controllers/profile_controller.rb
+++ b/app/controllers/profile_controller.rb
@@ -3,6 +3,12 @@ class ProfileController < ApplicationController
@user = current_user
end
+ def social_update
+ @user = current_user
+ @user.update_attributes(params[:user])
+ redirect_to [:profile]
+ end
+
def password
@user = current_user
end