aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorrbr <rbr@users.noreply.github.com>2015-11-19 13:05:06 +0100
committerrbr <rbr@users.noreply.github.com>2015-11-19 13:05:06 +0100
commit35138b15e979a72ec969315d48a034b3423b7409 (patch)
tree44432a084d58edd80d96e62658c33bbd0edad788 /guides
parent58df2f4b4abcce0b698c2540da215a565c24cbc9 (diff)
downloadrails-35138b15e979a72ec969315d48a034b3423b7409.tar.gz
rails-35138b15e979a72ec969315d48a034b3423b7409.tar.bz2
rails-35138b15e979a72ec969315d48a034b3423b7409.zip
Change configuration-guide example
Use an example from a default Rails app (4.2.5) rather than an outdated one in the Configuring Rails Components section. I picked config.time_zone as it currently is the only 'setting for Rails' left in a default config/application.rb. I stumbled upon this with investigating autoloading in a legacy app, which still included the example comment "# config.autoload_paths += %W(#{config.root}/extras)". Usually adding app/* directories to autoload_paths isn't necessary, so also finding this example within the current docs was a bit confusing initially. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 729d1cc661..dbb432db20 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -35,7 +35,7 @@ In general, the work of configuring Rails means configuring the components of Ra
For example, the `config/application.rb` file includes this setting:
```ruby
-config.autoload_paths += %W(#{config.root}/extras)
+config.time_zone = 'Central Time (US & Canada)'
```
This is a setting for Rails itself. If you want to pass settings to individual Rails components, you can do so via the same `config` object in `config/application.rb`: