diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-05-29 11:52:35 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-05-29 11:52:35 +0100 |
commit | 16c075c68159ef79dd196196a4171f54934f9c41 (patch) | |
tree | 7f669aa1b46d3d3d2e02dd11524f789e5d4f9337 /app/controllers/user_controller.rb | |
parent | a4f4968f540864ad1ffaca1a87d645aa5e63e7dc (diff) | |
parent | 155d574baea76526f468db79943050ae18cb416a (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index dca3cda17..b7912b528 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -527,7 +527,7 @@ class UserController < ApplicationController def get_draft_profile_photo profile_photo = ProfilePhoto.find(params[:id]) response.content_type = "image/png" - render_for_text(profile_photo.data) + render :text => profile_photo.data end # actual profile photo of a user @@ -542,7 +542,7 @@ class UserController < ApplicationController end response.content_type = "image/png" - render_for_text(@display_user.profile_photo.data) + render :text => @display_user.profile_photo.data end # Change about me text on your profile page |