diff options
author | Mark Longair <mhl@pobox.com> | 2013-05-28 16:45:55 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-05-28 16:45:55 +0100 |
commit | 155d574baea76526f468db79943050ae18cb416a (patch) | |
tree | 588ebd5901d57ef726233dfe6794b4602f83cb6f /app/controllers/user_controller.rb | |
parent | ef682f7d7c3402713efea88775b246c3c7960aa2 (diff) |
Replace 'render_for_text data' with 'render :text => data'
render_for_text no longer exists in Rails 3.
Fixes #955
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 |