Skip to content

Commit

Permalink
Remove deprecated `config.active_support.remove_deprecated_time_with_…
Browse files Browse the repository at this point in the history
…zone_name`
  • Loading branch information
rafaelfranca committed May 1, 2024
1 parent 0e6859a commit e73e67e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions activesupport/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Remove deprecated `config.active_support.remove_deprecated_time_with_zone_name`.

*Rafael Mendonça França*

* Remove deprecated `config.active_support.disable_to_s_conversion`.

*Rafael Mendonça França*
Expand Down
4 changes: 1 addition & 3 deletions activesupport/lib/active_support/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ class Railtie < Rails::Railtie # :nodoc:

initializer "active_support.set_configs" do |app|
app.config.active_support.each do |k, v|
if k == :remove_deprecated_time_with_zone_name
ActiveSupport.deprecator.warn("config.active_support.remove_deprecated_time_with_zone_name is deprecated and will be removed in Rails 7.2.")
elsif k == :use_rfc4122_namespaced_uuids
if k == :use_rfc4122_namespaced_uuids
ActiveSupport.deprecator.warn("config.active_support.use_rfc4122_namespaced_uuids is deprecated and will be removed in Rails 7.2.")
else
k = "#{k}="
Expand Down
2 changes: 2 additions & 0 deletions guides/source/7_2_release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Please refer to the [Changelog][active-support] for detailed changes.

* Remove deprecated `config.active_support.disable_to_s_conversion`.

* Remove deprecated `config.active_support.remove_deprecated_time_with_zone_name`.

* Remove deprecated support for the pre-Ruby 2.4 behavior of `to_time` returning a `Time` object with local timezone.

### Deprecations
Expand Down

0 comments on commit e73e67e

Please sign in to comment.