diff --git a/app/models/theme.rb b/app/models/theme.rb index 702effcc..0caf9864 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -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