File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -225,13 +225,9 @@ def message_verifier(verifier_name)
225
225
# The collection's configuration methods affect all deprecators in the
226
226
# collection. Additionally, the collection's +silence+ method silences all
227
227
# deprecators in the collection for the duration of a given block.
228
- #
229
- # The collection is prepopulated with a default deprecator, which can be
230
- # accessed via <tt>deprecators[:rails]</tt>. More deprecators can be added
231
- # via <tt>deprecators[name] = deprecator</tt>.
232
228
def deprecators
233
229
@deprecators ||= ActiveSupport ::Deprecation ::Deprecators . new . tap do |deprecators |
234
- deprecators [ :rails ] = Rails . deprecator
230
+ deprecators [ :railties ] = Rails . deprecator
235
231
end
236
232
end
237
233
Original file line number Diff line number Diff line change @@ -4022,7 +4022,7 @@ def new(app); self; end
4022
4022
assert_equal ActiveRecord . deprecator , Rails . application . deprecators [ :active_record ]
4023
4023
assert_equal ActiveStorage . deprecator , Rails . application . deprecators [ :active_storage ]
4024
4024
assert_equal ActiveSupport . deprecator , Rails . application . deprecators [ :active_support ]
4025
- assert_equal Rails . deprecator , Rails . application . deprecators [ :rails ]
4025
+ assert_equal Rails . deprecator , Rails . application . deprecators [ :railties ]
4026
4026
end
4027
4027
4028
4028
test "can entirely opt out of deprecation warnings" do
You can’t perform that action at this time.
0 commit comments