aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-18 08:00:45 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-18 08:00:45 -0700
commit5428de1efd695fa171779dbbacf718e1be60d63e (patch)
tree3d82f95cb9b2d6eecb4859891c06f19b7e9b92a5 /guides
parentbfcbaa55478577dafe4fa59c046e65e403451d04 (diff)
parentda26dfbefdccac4ab1f3195ae747685d2b11be13 (diff)
downloadrails-5428de1efd695fa171779dbbacf718e1be60d63e.tar.gz
rails-5428de1efd695fa171779dbbacf718e1be60d63e.tar.bz2
rails-5428de1efd695fa171779dbbacf718e1be60d63e.zip
Merge pull request #5339 from gregolsen/week_start_config
week_start option added to rails app config
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index a2c8d70095..909d304622 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -135,6 +135,8 @@ NOTE. The `config.asset_path` configuration is ignored if the asset pipeline is
* `config.time_zone` sets the default time zone for the application and enables time zone awareness for Active Record.
+* `config.beginning_of_week` sets the default beginning of week for the application. Accepts a valid week day symbol (e.g. `:monday`).
+
* `config.whiny_nils` enables or disables warnings when a certain set of methods are invoked on `nil` and it does not respond to them. Defaults to true in development and test environments.
### Configuring Assets
@@ -696,6 +698,8 @@ Below is a comprehensive list of all the initializers found in Rails in the orde
* `active_support.initialize_time_zone` Sets the default time zone for the application based on the `config.time_zone` setting, which defaults to "UTC".
+* `active_support.initialize_beginning_of_week` Sets the default beginnig of week for the application based on `config.beginning_of_week` setting, which defaults to `:monday`.
+
* `action_dispatch.configure` Configures the `ActionDispatch::Http::URL.tld_length` to be set to the value of `config.action_dispatch.tld_length`.
* `action_view.cache_asset_ids` Sets `ActionView::Helpers::AssetTagHelper::AssetPaths.cache_asset_ids` to `false` when Active Support loads, but only if `config.cache_classes` is too.