Skip to content

Commit 427fe4a

Browse files
authored
By definition, new apps wont have any deprecations to worry about. So dont expose those controls for new apps by default (rails#51831)
1 parent a82e432 commit 427fe4a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ Rails.application.configure do
5050
# Print deprecation notices to the Rails logger.
5151
config.active_support.deprecation = :log
5252

53-
# Raise exceptions for disallowed deprecations.
54-
config.active_support.disallowed_deprecation = :raise
55-
56-
# Tell Active Support which deprecation messages to disallow.
57-
config.active_support.disallowed_deprecation_warnings = []
58-
5953
<%- unless options.skip_active_record? -%>
6054
# Raise an error on page load if there are pending migrations.
6155
config.active_record.migration_error = :page_load

railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ Rails.application.configure do
5252
# Print deprecation notices to the stderr.
5353
config.active_support.deprecation = :stderr
5454

55-
# Raise exceptions for disallowed deprecations.
56-
config.active_support.disallowed_deprecation = :raise
57-
58-
# Tell Active Support which deprecation messages to disallow.
59-
config.active_support.disallowed_deprecation_warnings = []
60-
6155
# Raises error for missing translations.
6256
# config.i18n.raise_on_missing_translations = true
6357

0 commit comments

Comments
 (0)