wildcard content

This commit is contained in:
Yuki 2015-08-26 01:14:36 +05:30
parent 1ad2a60c5d
commit 370d66105f
1 changed files with 1 additions and 1 deletions

View File

@ -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