all_week(start_day = Date.beginning_of_week)
public
Returns a Range representing the whole week of
the current time. Week starts on
start_day, default is Date.week_start or
config.week_start when set.
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 230
def all_week(start_day = Date.beginning_of_week)
beginning_of_week(start_day)..end_of_week(start_day)
end