From fc026379ccd724742c6712a652daf6f29928f473 Mon Sep 17 00:00:00 2001 From: Wieland Lindenthal Date: Fri, 17 Feb 2017 10:48:13 +0100 Subject: [PATCH] fix path for custom logo when on S3 --- app/controllers/custom_styles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rb index 80ac63796c..31c1e2b97b 100644 --- a/app/controllers/custom_styles_controller.rb +++ b/app/controllers/custom_styles_controller.rb @@ -65,7 +65,7 @@ class CustomStylesController < ApplicationController @custom_style = CustomStyle.current if @custom_style && @custom_style.logo expires_in 1.years, public: true, must_revalidate: false - send_file(@custom_style.logo_url) + send_file(@custom_style.logo.local_file.path) else head :not_found end