diff options
author | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-06-30 11:24:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-30 11:24:42 -0400 |
commit | 243d06bdcbb732f78405259becbb6596750e46b4 (patch) | |
tree | 53d1afbd91b612e762d55dd276c5740809077d8a | |
parent | f78c004fdca0e99afe7b386a77a037576b5b4fba (diff) | |
parent | 370507ba10511f07b4d16d038c2e01b8c9d31407 (diff) | |
download | rails-243d06bdcbb732f78405259becbb6596750e46b4.tar.gz rails-243d06bdcbb732f78405259becbb6596750e46b4.tar.bz2 rails-243d06bdcbb732f78405259becbb6596750e46b4.zip |
Merge pull request #25599 from prathamesh-sonpatki/update-upgrade-guide
Update upgrade guide
-rw-r--r-- | guides/source/configuring.md | 2 | ||||
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 1f7e9cc61f..59cf412c5f 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -94,7 +94,7 @@ application. Accepts a valid week day symbol (e.g. `:monday`). * `config.eager_load_paths` accepts an array of paths from which Rails will eager load on boot if cache classes is enabled. Defaults to every folder in the `app` directory of the application. -* `config.enable_dependency_loading`: when true, enables autoload loading, even if the application is eager loaded and `config.cache_classes` is set as true. Defaults to false. +* `config.enable_dependency_loading`: when true, enables autoloading, even if the application is eager loaded and `config.cache_classes` is set as true. Defaults to false. * `config.encoding` sets up the application-wide encoding. Defaults to UTF-8. 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 ------------------------------------- |