diff options
author | Matthew Draper <matthew@trebex.net> | 2017-02-25 10:53:03 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-02-25 10:53:03 +1030 |
commit | 9099cf064f66ae4e6414736ad513399c86100902 (patch) | |
tree | 6bf373e47c1f4abb4b4d745748734cb7f7c69b68 /guides/source | |
parent | feea081199f1398e7fa97bf22eb6081ecd2d6174 (diff) | |
parent | ac57a3ee0e9d484f3d665f42933fcda864546349 (diff) | |
download | rails-9099cf064f66ae4e6414736ad513399c86100902.tar.gz rails-9099cf064f66ae4e6414736ad513399c86100902.tar.bz2 rails-9099cf064f66ae4e6414736ad513399c86100902.zip |
Merge pull request #28157 from robin850/hwia-soft-deprecation
Soft-deprecate the `HashWithIndifferentAccess` constant
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 8ba00a2b10..6005298127 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -65,6 +65,25 @@ Overwrite /myapp/config/application.rb? (enter "h" for help) [Ynaqdh] Don't forget to review the difference, to see if there were any unexpected changes. +Upgrading from Rails 5.0 to Rails 5.1 +------------------------------------- + +For more information on changes made to Rails 5.1 please see the [release notes](5_1_release_notes.html). + +### Top-level `HashWithIndifferentAccess` is soft-deprecated + +If your application uses the the top-level `HashWithIndifferentAccess` class, you +should slowly move your code to use the `ActiveSupport::HashWithIndifferentAccess` +one. + +It is only soft-deprecated, which means that your code will not break at the +moment and no deprecation warning will be displayed but this constant will be +removed in the future. + +Also, if you have pretty old YAML documents containg dumps of such objects, +you may need to load and dump them again to make sure that they reference +the right constant and that loading them won't break in the future. + Upgrading from Rails 4.2 to Rails 5.0 ------------------------------------- |