fix css content type

This commit is contained in:
Yuki 2015-08-26 01:24:07 +05:30
parent c2da575955
commit ad8506ee5f
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: /^Atext/
validates_attachment_content_type :css, content_type: /^text\//
before_save do
self.css = nil