Merge pull request #5201 from opf/fix/logo-download-path-saas

fix path for custom logo when on S3
pull/5202/head
Oliver Günther 8 years ago committed by GitHub
commit cf3900c417
  1. 2
      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

Loading…
Cancel
Save