Sha256: 7134eb862baef0fe4848df71d2ebd9d36dc9b9b602a5f5d13679b3e14b052cb8
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
module Mailbin class InlinePreviewInterceptor < ActionMailer::InlinePreviewInterceptor private # Convert to base64 unless it's already done def data_url(part) source = part.body.encoding == "base64" ? part.body.raw_source : strict_encode64(part.body.raw_source) "data:#{part.mime_type};base64,#{source}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mailbin-1.0.0 | lib/mailbin/inline_preview_interceptor.rb |
mailbin-0.1.1 | lib/mailbin/inline_preview_interceptor.rb |
mailbin-0.1.0 | lib/mailbin/inline_preview_interceptor.rb |