diff options
author | Xavier Noria <fxn@hashref.com> | 2011-11-25 12:01:58 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-11-25 12:02:49 -0800 |
commit | a5b362df567ed4a0167a83e9b8f00b9f614ac38b (patch) | |
tree | eee250cadf593bc6ab901167d0ba0d5cf73d6982 /railties | |
parent | 7a33a005d732e80f5a6832b67df6dec5a6faaa1e (diff) | |
download | rails-a5b362df567ed4a0167a83e9b8f00b9f614ac38b.tar.gz rails-a5b362df567ed4a0167a83e9b8f00b9f614ac38b.tar.bz2 rails-a5b362df567ed4a0167a83e9b8f00b9f614ac38b.zip |
some tweaks to PR#3547. [Closes #3547]
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index c6130f4f62..09f931050d 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -3039,7 +3039,9 @@ Active Support defines these methods as well for Ruby 1.8. h6. +beginning_of_week+, +end_of_week+ -The methods +beginning_of_week+ and +end_of_week+ receive a symbol with a day name in English (in lowercase, default is :monday) and return the dates for the beginning and end of week, assuming weeks start on day, passed as parameter: +The methods +beginning_of_week+ and +end_of_week+ return the dates for the +beginning and end of the week, respectively. Weeks are assumed to start on +Monday, but that can be changed passing an argument, see examples: <ruby> d = Date.new(2010, 5, 8) # => Sat, 08 May 2010 |