probably shouldn't do this
This commit is contained in:
parent
9daa8a7ab3
commit
cc8e2448eb
|
@ -16,11 +16,9 @@ class Theme < ActiveRecord::Base
|
|||
allow_nil: true, only_integer: true
|
||||
|
||||
has_attached_file :css, use_timestamp: false, s3_headers: {
|
||||
'Content-Type' => 'text/css',
|
||||
'Content-Disposition' => 'attachment; filename=theme.css'
|
||||
'Content-Type' => 'text/css'
|
||||
}, fog_file: {
|
||||
content_type: 'text/css',
|
||||
content_disposition: "attachment; filename=theme.css"
|
||||
content_type: 'text/css'
|
||||
}
|
||||
validates_attachment_content_type :css, content_type: /^text\//
|
||||
|
||||
|
|
Loading…
Reference in New Issue