From 34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Tue, 27 Sep 2016 12:22:55 +0900 Subject: fix typo in `DateAndTime::Calculations#all_week` doc [ci skip] `Date.week_start` does not exist. `Date.beginning_of_week` seems to be correct. Ref: #5339 --- activesupport/lib/active_support/core_ext/date_and_time/calculations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb index 792076a449..c614f14289 100644 --- a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb @@ -300,7 +300,7 @@ module DateAndTime end # Returns a Range representing the whole week of the current date/time. - # Week starts on start_day, default is Date.week_start or config.week_start when set. + # Week starts on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. def all_week(start_day = Date.beginning_of_week) beginning_of_week(start_day)..end_of_week(start_day) end -- cgit v1.2.3