Various small rails 5 adoptions
This commit is contained in:
parent
3a6276aece
commit
266e9337be
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue