File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed
railties/test/application Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require "action_mailbox/deprecator"
3
4
require "action_mailbox/mail_ext"
4
5
5
6
module ActionMailbox
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ module ActionMailbox
4
+ def self . deprecator # :nodoc:
5
+ @deprecator ||= ActiveSupport ::Deprecation . new
6
+ end
7
+ end
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ class Engine < Rails::Engine
22
22
23
23
config . action_mailbox . storage_service = nil
24
24
25
+ initializer "action_mailbox.deprecator" do |app |
26
+ app . deprecators [ :action_mailbox ] = ActionMailbox . deprecator
27
+ end
28
+
25
29
initializer "action_mailbox.config" do
26
30
config . after_initialize do |app |
27
31
ActionMailbox . logger = app . config . action_mailbox . logger || Rails . logger
Original file line number Diff line number Diff line change @@ -3893,6 +3893,7 @@ def new(app); self; end
3893
3893
assert_equal AbstractController . deprecator , Rails . application . deprecators [ :action_controller ]
3894
3894
assert_equal ActionController . deprecator , Rails . application . deprecators [ :action_controller ]
3895
3895
assert_equal ActionDispatch . deprecator , Rails . application . deprecators [ :action_dispatch ]
3896
+ assert_equal ActionMailbox . deprecator , Rails . application . deprecators [ :action_mailbox ]
3896
3897
assert_equal ActionMailer . deprecator , Rails . application . deprecators [ :action_mailer ]
3897
3898
assert_equal ActionView . deprecator , Rails . application . deprecators [ :action_view ]
3898
3899
assert_equal ActiveJob . deprecator , Rails . application . deprecators [ :active_job ]
You can’t perform that action at this time.
0 commit comments