summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/email_pipeline.rb
blob: 2c08581ce0d30badbfe0a281ccd630a7f8840c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Banzai
  module Pipeline
    class EmailPipeline < FullPipeline
      def self.filters
        super.tap do |filter_array|
          filter_array.delete(Banzai::Filter::ImageLazyLoadFilter)
        end
      end

      def self.transform_context(context)
        super(context).merge(
          only_path: false
        )
      end
    end
  end
end