Sha256: 03576ac14a3a3d3c24f3c01e2a37d100d169ce2dd8f460d4efcd8d6f596ec7e0

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 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/railtie"

module SanitizeEmail
  # For Rails 3.0, which didn't yet support Engines
  class Railtie < ::Rails::Railtie
    config.after_initialize 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/railtie.rb
sanitize_email-2.0.9 lib/sanitize_email/railtie.rb
sanitize_email-2.0.8 lib/sanitize_email/railtie.rb
sanitize_email-2.0.7 lib/sanitize_email/railtie.rb
sanitize_email-2.0.6 lib/sanitize_email/railtie.rb