From da26dfbefdccac4ab1f3195ae747685d2b11be13 Mon Sep 17 00:00:00 2001 From: gregolsen Date: Tue, 18 Sep 2012 17:18:19 +0300 Subject: Date.beginning_of_week thread local and beginning_of_week application config option added (default is Monday) --- guides/source/configuring.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'guides') 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. -- cgit v1.2.3