wildcard content
This commit is contained in:
parent
1ad2a60c5d
commit
370d66105f
|
@ -20,7 +20,7 @@ class Theme < ActiveRecord::Base
|
|||
}, fog_file: {
|
||||
content_type: 'text/css'
|
||||
}
|
||||
validates_attachment_content_type :css, content_type: /text\/(x-c|css)/
|
||||
validates_attachment_content_type :css, content_type: /^Atext/
|
||||
|
||||
before_save do
|
||||
self.css = nil
|
||||
|
|
Loading…
Reference in New Issue