From ad8506ee5fe0805d1f472c80c12726c651627239 Mon Sep 17 00:00:00 2001 From: Yuki Date: Wed, 26 Aug 2015 01:24:07 +0530 Subject: [PATCH] fix css content type --- 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 0caf9864..dac3618b 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: /^Atext/ + validates_attachment_content_type :css, content_type: /^text\// before_save do self.css = nil