email_prefixer 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/email_prefixer/railtie.rb +3 -1
- data/lib/email_prefixer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0263e865c58d4ada9d367d017fdafd9eff290373
|
4
|
+
data.tar.gz: 4cfbc2b5f7a2694f3ef0f69c6b930e27191f3bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1307adc5c5aa8c08c3d0160832541cf332fde045b0bae70041c9156334f82d531fb66e0fdfd1868a2b054d6b7ee0f5c2f94e14ed62ab7fdc32d4c3cb36b4de43
|
7
|
+
data.tar.gz: 5479d3358baa74f51bc70d2b4301460d4b181ce39dc948d8524300b3977116c3e4d80de1fa24da4c542b990be41633b0d6569b18f03751d73fb47de379693737
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module EmailPrefixer
|
2
2
|
class Railtie < ::Rails::Railtie
|
3
3
|
initializer 'email_prefixer.configure_default_application_name' do |app|
|
4
|
-
|
4
|
+
interceptor = EmailPrefixer::Interceptor.new
|
5
|
+
ActionMailer::Base.register_preview_interceptor(interceptor)
|
6
|
+
ActionMailer::Base.register_interceptor(interceptor)
|
5
7
|
EmailPrefixer.configure do |config|
|
6
8
|
config.application_name ||= app.class.parent_name
|
7
9
|
end
|