aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-27 12:22:55 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-27 12:23:52 +0900
commit34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66 (patch)
treee6d4aaf9729bd41482fb223ba75e8d9acaaf883e /activesupport/lib/active_support/core_ext
parentc994a893c18c0456fd2a30efe4debfc2b18e2508 (diff)
downloadrails-34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66.tar.gz
rails-34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66.tar.bz2
rails-34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66.zip
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
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/date_and_time/calculations.rb2
1 files changed, 1 insertions, 1 deletions
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 <tt>Date.week_start</tt> or <tt>config.week_start</tt> when set.
+ # Week starts on start_day, default is <tt>Date.beginning_of_week</tt> or <tt>config.beginning_of_week</tt> when set.
def all_week(start_day = Date.beginning_of_week)
beginning_of_week(start_day)..end_of_week(start_day)
end