gitlab-org--gitlab-foss/lib/banzai/pipeline/email_pipeline.rb

20 lines
388 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module Pipeline
2015-10-21 06:18:23 -04:00
class EmailPipeline < FullPipeline
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)
super(context).merge(
2015-10-21 06:18:23 -04:00
only_path: false
)
end
end
end
end