```ruby
Paperclip::Attachment.default_options[:s3_host_name] = ENV["S3_HOST_NAME"] || "s3.amazonaws.com"

module Paperclip
  class MediaTypeSpoofDetector
    def spoofed?
      false
    end
  end
end
```

Replace s3_host_domain config with url & path config for Paperclip
user
```ruby
Paperclip::Attachment.default_options[:url] = ':s3_domain_url'
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename'

module Paperclip
  class MediaTypeSpoofDetector
    def spoofed?
      false
    end
  end
end
```
assistant