Use mime type symbol to set content_type for custom css response (#37845)
This commit is contained in:
1 parent
5f33cf0b0a
commit
1232b55211
2 files changed
+7
-9
No files matched your search
@@ -3,7 +3,7 @@
|
||||
class CustomCssController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
||||
def show
|
||||
expires_in 1.month, public: true
|
||||
render content_type: 'text/css'
|
||||
render content_type: :css
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in new issue
Block a user