diff options
author | gregolsen <anotheroneman@yahoo.com> | 2012-09-18 17:18:19 +0300 |
---|---|---|
committer | gregolsen <anotheroneman@yahoo.com> | 2012-09-18 17:18:19 +0300 |
commit | da26dfbefdccac4ab1f3195ae747685d2b11be13 (patch) | |
tree | b70490470cd80389bdaf19ab96af2948544507a9 /guides/source | |
parent | 9f2d1a146c3883c2ea9d16d4fa5a7ad65ca55db8 (diff) | |
download | rails-da26dfbefdccac4ab1f3195ae747685d2b11be13.tar.gz rails-da26dfbefdccac4ab1f3195ae747685d2b11be13.tar.bz2 rails-da26dfbefdccac4ab1f3195ae747685d2b11be13.zip |
Date.beginning_of_week thread local and beginning_of_week application config option added (default is Monday)
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/configuring.md | 4 |
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. |