Various small rails 5 adoptions

This commit is contained in:
Patrick Gansterer 2020-08-12 13:38:18 +02:00
parent 3a6276aece
commit 266e9337be
4 changed files with 5 additions and 5 deletions

View file

@ -9,10 +9,10 @@ class StylesController < ApplicationController
def foodcoop
css = FoodsoftConfig[:custom_css]
if css.blank?
render text: nil, content_type: 'text/css', status: 404
render body: nil, content_type: 'text/css', status: 404
else
expires_in 1.week, public:true if params[:md5].present?
render text: css, content_type: 'text/css'
render body: css, content_type: 'text/css'
end
end
end