aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time
diff options
context:
space:
mode:
authorgregolsen <anotheroneman@yahoo.com>2011-11-17 22:17:33 +0200
committergregolsen <anotheroneman@yahoo.com>2011-11-17 22:17:33 +0200
commit8d83e339fc91bfba51bb30384efc1bca6a099a53 (patch)
treef905a460c818aef0dabd7b8260dad403b4434fd6 /activesupport/lib/active_support/core_ext/time
parent9b534060bfafbf1db36e73bb3e538b8c412dcc54 (diff)
downloadrails-8d83e339fc91bfba51bb30384efc1bca6a099a53.tar.gz
rails-8d83e339fc91bfba51bb30384efc1bca6a099a53.tar.bz2
rails-8d83e339fc91bfba51bb30384efc1bca6a099a53.zip
updating API docstring so that user can infer default value
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb
index 372dd69212..43cd103481 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -176,12 +176,12 @@ class Time
end
alias :at_end_of_week :end_of_week
- # Returns a new Time representing the start of the given day in the previous week (default is Monday).
+ # Returns a new Time representing the start of the given day in the previous week (default is :monday).
def prev_week(day = :monday)
ago(1.week).beginning_of_week.since(DAYS_INTO_WEEK[day].day).change(:hour => 0)
end
- # Returns a new Time representing the start of the given day in next week (default is Monday).
+ # Returns a new Time representing the start of the given day in next week (default is :monday).
def next_week(day = :monday)
since(1.week).beginning_of_week.since(DAYS_INTO_WEEK[day].day).change(:hour => 0)
end