From 741bee22a0d2991ca4302da4ab2a96ec48c47590 Mon Sep 17 00:00:00 2001 From: Yuki Date: Wed, 26 Aug 2015 01:05:56 +0530 Subject: [PATCH] text/css --- app/models/theme.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/theme.rb b/app/models/theme.rb index 777e648f..bdf1d75b 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -16,11 +16,11 @@ class Theme < ActiveRecord::Base allow_nil: true, only_integer: true has_attached_file :css, use_timestamp: false, s3_headers: { - 'Content-Type': 'text/stylesheet' + 'Content-Type': 'text/css' }, fog_file: { - content_type: 'text/stylesheet' + content_type: 'text/css' } - validates_attachment_content_type :css, content_type: /text\/(x-c|stylesheet)/ + validates_attachment_content_type :css, content_type: /text\/(x-c|css)/ before_save do self.css = nil @@ -31,7 +31,7 @@ class Theme < ActiveRecord::Base attr_accessor :original_filename, :content_type } - style.content_type = 'text/stylesheet' + style.content_type = 'text/css' style.original_filename = 'theme.css' self.css = style