File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed
railties/test/application Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 3
3
require "active_support"
4
4
require "active_support/rails"
5
5
6
+ require "action_text/deprecator"
7
+
6
8
require "nokogiri"
7
9
8
10
module ActionText
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ module ActionText
4
+ def self . deprecator # :nodoc:
5
+ @deprecator ||= ActiveSupport ::Deprecation . new
6
+ end
7
+ end
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ class Engine < Rails::Engine
19
19
#{ root } /app/models
20
20
)
21
21
22
+ initializer "action_text.deprecator" do |app |
23
+ app . deprecators [ :action_text ] = ActionText . deprecator
24
+ end
25
+
22
26
initializer "action_text.attribute" do
23
27
ActiveSupport . on_load ( :active_record ) do
24
28
include ActionText ::Attribute
Original file line number Diff line number Diff line change @@ -3895,6 +3895,7 @@ def new(app); self; end
3895
3895
assert_equal ActionDispatch . deprecator , Rails . application . deprecators [ :action_dispatch ]
3896
3896
assert_equal ActionMailbox . deprecator , Rails . application . deprecators [ :action_mailbox ]
3897
3897
assert_equal ActionMailer . deprecator , Rails . application . deprecators [ :action_mailer ]
3898
+ assert_equal ActionText . deprecator , Rails . application . deprecators [ :action_text ]
3898
3899
assert_equal ActionView . deprecator , Rails . application . deprecators [ :action_view ]
3899
3900
assert_equal ActiveJob . deprecator , Rails . application . deprecators [ :active_job ]
3900
3901
assert_equal ActiveRecord . deprecator , Rails . application . deprecators [ :active_record ]
You can’t perform that action at this time.
0 commit comments