fix css content type
This commit is contained in:
parent
c2da575955
commit
ad8506ee5f
|
@ -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 New Issue