diff options
author | Xavier Noria <fxn@hashref.com> | 2012-10-09 18:17:54 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-10-09 18:18:00 +0200 |
commit | 7fcbbafe1ab9d9d81483591b031f7f44e0a55cd3 (patch) | |
tree | dd152e33079bfd626cc2275f1ef4b61140b0dfae /guides | |
parent | 9c2b3b8008d9c97752aa33659369c02d6b0a87c1 (diff) | |
download | rails-7fcbbafe1ab9d9d81483591b031f7f44e0a55cd3.tar.gz rails-7fcbbafe1ab9d9d81483591b031f7f44e0a55cd3.tar.bz2 rails-7fcbbafe1ab9d9d81483591b031f7f44e0a55cd3.zip |
copy-edits ae9b3d7 [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 6a5d88777c..645498437d 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -3129,7 +3129,7 @@ d.sunday # => Sun, 16 Sep 2012 ##### `prev_week`, `next_week` -The method `next_week` receives a symbol with a day name in English (default is `Date.beginning_of_week` or :monday if not set) and it returns the date corresponding to that day. +The method `next_week` receives a symbol with a day name in English (default is the thread local `Date.beginning_of_week`, or `config.beginning_of_week`, or `:monday`) and it returns the date corresponding to that day. ```ruby d = Date.new(2010, 5, 9) # => Sun, 09 May 2010 @@ -3146,7 +3146,8 @@ d.prev_week(:friday) # => Fri, 30 Apr 2010 ``` `prev_week` is aliased to `last_week`. -Both `next_week` and `prev_week` work as expected when Date.beginning_of_week` or `config.beginning_of_week` is set. + +Both `next_week` and `prev_week` work as expected when `Date.beginning_of_week` or `config.beginning_of_week` are set. ##### `beginning_of_month`, `end_of_month` |