Isn't necessary prepare URL if file is saved in S3

This commit is contained in:
Guillermo 2010-09-26 11:05:17 -05:00
parent 8a92f15948
commit 86cbce288b

View file

@ -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