Class: Banzai::Pipeline::EmailPipeline

Inherits:
FullPipeline show all
Defined in:
lib/banzai/pipeline/email_pipeline.rb

Class Method Summary collapse

Class Method Details

.filtersObject


6
7
8
9
10
# File 'lib/banzai/pipeline/email_pipeline.rb', line 6

def self.filters
  super.tap do |filter_array|
    filter_array.delete(Banzai::Filter::ImageLazyLoadFilter)
  end
end

.transform_context(context) ⇒ Object


12
13
14
15
16
17
18
# File 'lib/banzai/pipeline/email_pipeline.rb', line 12

def self.transform_context(context)
  super(context).merge(
    only_path: false,
    emailable_links: true,
    no_sourcepos: true
  )
end