mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-20 16:56:05 +01:00
15 lines
411 B
Ruby
15 lines
411 B
Ruby
# I seriously hope you guys don't do this.
|
|
|
|
class Paperclip::FileCommandContentTypeDetector
|
|
alias old_type_from_file_command type_from_file_command
|
|
def type_from_file_command
|
|
default = old_type_from_file_command
|
|
if default.strip == 'text/x-c' or default.strip == 'text/plain' or default.strip == 'text/stylesheet'
|
|
'text/css'
|
|
else
|
|
default
|
|
end
|
|
end
|
|
end
|
|
|
|
# Here be monkey patches.
|