1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
yuuji.yaginuma 2016-09-27 12:22:55 +09:00
parent c994a893c1
commit 34a313aa35

View file

@ -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