From 86cbce288ba3d6ffa33c9b62a4cfa0ccdee25f69 Mon Sep 17 00:00:00 2001 From: Guillermo <guilleiguaran@gmail.com> Date: Sun, 26 Sep 2010 11:05:17 -0500 Subject: [PATCH] Isn't necessary prepare URL if file is saved in S3 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 260b5b7fa9..9fb2c2989b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -30,7 +30,7 @@ class UsersController < ApplicationController params[:profile].delete(:image_url) else url = APP_CONFIG[:pod_url].chop if APP_CONFIG[:pod_url][-1,1] == '/' - params[:profile][:image_url] = url + params[:profile][:image_url] + params[:profile][:image_url] = url + params[:profile][:image_url] if params[:profile][:image_url].at(0) == '/' end end -- GitLab