aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-08-05 16:31:10 +0000
committerfrancis <francis>2009-08-05 16:31:10 +0000
commit0610eeb4597138723cce97dcd0c4702a0de0dbcd (patch)
tree73c3c36b700911f41ac5b2be08aee36efd99085b /app/controllers/user_controller.rb
parent9d3f7b1d205e36768e0910d4748ee913cb8df60f (diff)
Some (as yet unused) profile photo code done on a whim on the train while it
was my birthday.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 6d3cb3480..cf1eb1d2c 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: user_controller.rb,v 1.66 2009-04-23 12:17:06 tony Exp $
+# $Id: user_controller.rb,v 1.67 2009-08-05 16:31:10 francis Exp $
class UserController < ApplicationController
# Show page about a user
@@ -314,4 +314,10 @@ class UserController < ApplicationController
render :action => 'confirm' # must be same as for send_confirmation_mail above to avoid leak of presence of email in db
end
+ def set_profile_photo
+ @photo_user = User.find(params[:id])
+ new_profile_photo = ProfilePhoto.new(:data => data)
+ @photo_user.set_profile_photo(new_profile_photo)
+ end
end
+