Sha256: 51f6510cd7e88ef3c0ffe30fb6487454d1f791a00300a6373479f885c8b191dd

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

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

module SanitizeEmail
  # For Rails >= 6.0
  class EngineV5 < ::Rails::Engine
    config.to_prepare do
      # For the reasoning behind the difference between v5 and v6 engines,
      #   - see: https://github.com/rails/rails/issues/36546#issuecomment-850888284
      config.action_mailer.register_interceptor(SanitizeEmail::Bleach)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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