Skip to content

Commit d9037d0

Browse files
Merge pull request rails#47919 from jonathanhefner/deprecators-rename-rails-as-railties
Rename `:rails` deprecator as `:railties`
2 parents 2675c90 + 0fc57a4 commit d9037d0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

railties/lib/rails/application.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,9 @@ def message_verifier(verifier_name)
225225
# The collection's configuration methods affect all deprecators in the
226226
# collection. Additionally, the collection's +silence+ method silences all
227227
# 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>.
232228
def deprecators
233229
@deprecators ||= ActiveSupport::Deprecation::Deprecators.new.tap do |deprecators|
234-
deprecators[:rails] = Rails.deprecator
230+
deprecators[:railties] = Rails.deprecator
235231
end
236232
end
237233

railties/test/application/configuration_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4022,7 +4022,7 @@ def new(app); self; end
40224022
assert_equal ActiveRecord.deprecator, Rails.application.deprecators[:active_record]
40234023
assert_equal ActiveStorage.deprecator, Rails.application.deprecators[:active_storage]
40244024
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]
40264026
end
40274027

40284028
test "can entirely opt out of deprecation warnings" do

0 commit comments

Comments
 (0)