Permalink
Browse files

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
  • Loading branch information...
y-yagi committed Sep 27, 2016
1 parent c994a89 commit 34a313aa35a2e1fb7a0740c85dc7b2d5d2ccab66
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
@@ -300,7 +300,7 @@ def all_day
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

0 comments on commit 34a313a

Please sign in to comment.