Sha256: 4f47d0cf4c7c2c0d1ce3590dd993d8b773bb1df0d7180d01cf758277df764e92

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

# Copyright (c) 2008 - 2018, 2020, 2022, 2024 Peter H. Boling of RailsBling.com
# Released under the MIT license
require "rails/engine"

module SanitizeEmail
  # For Rails >= 6.0
  class EngineV6 < ::Rails::Engine
    config.to_prepare do
      # For the reasoning behind the difference between v5 and v6 engines,
      #   - see: https://github.com/rails/rails/issues/42170#issuecomment-835177539
      Rails.application.config.action_mailer.interceptors = ["SanitizeEmail::Bleach"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sanitize_email-2.0.7 lib/sanitize_email/engine_v6.rb