Sha256: c403c77da213d58d9fe5232252c024141acddfeaae27ce1558ce5f2f16b59d38

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 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 >= 3.1, < 6.0
  # TODO: Remove when support for Rails < 6 is dropped
  class EngineV5 < ::Rails::Engine
    config.to_prepare do
      ActionMailer::Base.register_interceptor(SanitizeEmail::Bleach)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sanitize_email-2.0.10 lib/sanitize_email/engine_v5.rb
sanitize_email-2.0.9 lib/sanitize_email/engine_v5.rb
sanitize_email-2.0.8 lib/sanitize_email/engine_v5.rb
sanitize_email-2.0.7 lib/sanitize_email/engine_v5.rb
sanitize_email-2.0.6 lib/sanitize_email/engine_v5.rb