probably shouldn't do this

This commit is contained in:
Yuki 2015-08-26 01:44:17 +05:30
parent 9daa8a7ab3
commit cc8e2448eb
1 changed files with 2 additions and 4 deletions

View File

@ -16,11 +16,9 @@ class Theme < ActiveRecord::Base
allow_nil: true, only_integer: true allow_nil: true, only_integer: true
has_attached_file :css, use_timestamp: false, s3_headers: { has_attached_file :css, use_timestamp: false, s3_headers: {
'Content-Type' => 'text/css', 'Content-Type' => 'text/css'
'Content-Disposition' => 'attachment; filename=theme.css'
}, fog_file: { }, fog_file: {
content_type: 'text/css', content_type: 'text/css'
content_disposition: "attachment; filename=theme.css"
} }
validates_attachment_content_type :css, content_type: /^text\// validates_attachment_content_type :css, content_type: /^text\//