Sha256: dbba57fb08b2d81b5be13189d6d7b210d9adb54184dc8eb18ec155dbc251d526

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 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
    # Runs before frameworks, like ActionMailer, are initialized
    config.before_initialize do
      ActiveSupport.on_load(:action_mailer) do
        # Within :action_mailer hook, self is ActionMailer::Base
        register_interceptor(SanitizeEmail::Bleach)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sanitize_email-2.0.10 lib/sanitize_email/engine_v6.rb
sanitize_email-2.0.9 lib/sanitize_email/engine_v6.rb
sanitize_email-2.0.8 lib/sanitize_email/engine_v6.rb