mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
fix css content type
This commit is contained in:
parent
c2da575955
commit
ad8506ee5f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Theme < ActiveRecord::Base
|
|||
}, fog_file: {
|
||||
content_type: 'text/css'
|
||||
}
|
||||
validates_attachment_content_type :css, content_type: /^Atext/
|
||||
validates_attachment_content_type :css, content_type: /^text\//
|
||||
|
||||
before_save do
|
||||
self.css = nil
|
||||
|
|
Loading…
Reference in a new issue