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:
parent
c994a893c1
commit
34a313aa35
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue