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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0679054bf981b9214eebab9ce52990dab601773
4
- data.tar.gz: f73c0e6053908a2e33f1da14a8eef1441a0a5ed0
3
+ metadata.gz: 0263e865c58d4ada9d367d017fdafd9eff290373
4
+ data.tar.gz: 4cfbc2b5f7a2694f3ef0f69c6b930e27191f3bd0
5
5
  SHA512:
6
- metadata.gz: 8cf3d7429efb2a94850d4d867dcd7f626ee4c3ef0ff7aa7556b6e48ef9bce34d37b2a0f74f583ea20d174495e5545b23af664d4a170e19ce3749c29286d7f6f2
7
- data.tar.gz: 2b98e4c91c27fb60973f7d709d1a54d5512cb8df87d9e76b89bfb86c850644be48d04a34297e7a2b4ead4c38a0288fd5d1dcd0c16e9338c2f5fa646ed88d7f75
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
- ActionMailer::Base.register_interceptor(EmailPrefixer::Interceptor.new)
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
@@ -1,3 +1,3 @@
1
1
  module EmailPrefixer
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_prefixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Sonnek