2015-08-25 13:44:14 -07:00
|
|
|
# I seriously hope you guys don't do this.
|
|
|
|
|
|
|
|
class Paperclip::FileCommandContentTypeDetector
|
2015-08-25 13:56:47 -07:00
|
|
|
alias old_type_from_file_command type_from_file_command
|
2015-08-25 13:44:14 -07:00
|
|
|
def type_from_file_command
|
2015-08-25 13:56:47 -07:00
|
|
|
default = old_type_from_file_command
|
|
|
|
if default.strip == 'text/x-c' or default.strip == 'text/plain' or default.strip == 'text/stylesheet'
|
2015-08-25 13:44:14 -07:00
|
|
|
'text/css'
|
|
|
|
else
|
|
|
|
default
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Here be monkey patches.
|