2018-10-06 19:10:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-15 09:51:16 -05:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
2015-10-21 06:18:23 -04:00
|
|
|
class EmailPipeline < FullPipeline
|
2017-09-12 11:14:54 -04:00
|
|
|
def self.filters
|
|
|
|
super.tap do |filter_array|
|
|
|
|
filter_array.delete(Banzai::Filter::ImageLazyLoadFilter)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-10-21 06:18:23 -04:00
|
|
|
def self.transform_context(context)
|
2015-12-15 09:51:16 -05:00
|
|
|
super(context).merge(
|
2019-01-11 19:31:00 -05:00
|
|
|
only_path: false,
|
2019-01-14 17:57:54 -05:00
|
|
|
emailable_links: true,
|
2019-01-11 19:31:00 -05:00
|
|
|
no_sourcepos: true
|
2015-10-21 06:18:23 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|