From 370d66105f9fc57881eabe044dc12703f34d0420 Mon Sep 17 00:00:00 2001 From: Yuki Date: Wed, 26 Aug 2015 01:14:36 +0530 Subject: [PATCH] wildcard content --- app/models/theme.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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