diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-30 20:33:41 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-30 20:45:45 +0530 |
commit | 370507ba10511f07b4d16d038c2e01b8c9d31407 (patch) | |
tree | 53d1afbd91b612e762d55dd276c5740809077d8a /guides/source/upgrading_ruby_on_rails.md | |
parent | f78c004fdca0e99afe7b386a77a037576b5b4fba (diff) | |
download | rails-370507ba10511f07b4d16d038c2e01b8c9d31407.tar.gz rails-370507ba10511f07b4d16d038c2e01b8c9d31407.tar.bz2 rails-370507ba10511f07b4d16d038c2e01b8c9d31407.zip |
Add a note about autoloading being disabled in production env in upgrade guide [ci skip]
- Also to_time_preserves_timezone config should be false for older apps getting upgraded to Rails 5 [ci skip]
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 9fff1a46c2..b7fbf9963b 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -145,6 +145,12 @@ your Gemfile. If you are using Rspec for testing please see the extra configuration required in the gem's documentation. +### Autoloading is disabled in production environment + +Autoloading of classes is now disabled in production environment by default. If your code +is dependent on autoloading in production, then you can opt out by setting +`Rails.application.config.enable_dependency_loading` to true. + ### XML Serialization `ActiveModel::Serializers::Xml` has been extracted from Rails to the `activemodel-serializers-xml` @@ -293,7 +299,7 @@ Set the following in your config to enable HSTS when using subdomains. When using Ruby 2.4 you can preserve the timezone of the receiver when calling `to_time`. - ActiveSupport.to_time_preserves_timezone = <%= options[:update] ? false : true %> + ActiveSupport.to_time_preserves_timezone = false Upgrading from Rails 4.1 to Rails 4.2 ------------------------------------- |