Sha256: fdf058ac74b919bab06f53aa15f74a127af8ef717a9acefd4ace44df9f356141
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module EmailPrefixer class Railtie < ::Rails::Railtie initializer 'email_prefixer.configure_default_application_name' do |app| interceptor = EmailPrefixer::Interceptor.new ActionMailer::Base.register_preview_interceptor(interceptor) ActionMailer::Base.register_interceptor(interceptor) EmailPrefixer.configure do |config| config.application_name ||= app.class.parent_name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_prefixer-1.0.2 | lib/email_prefixer/railtie.rb |
email_prefixer-1.0.1 | lib/email_prefixer/railtie.rb |