Methods
C
T
Y
Instance Public methods
current()

Returns Time.zone.today when config.time_zone is set, otherwise just returns Date.today.

# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 30
def current
  ::Time.zone_default ? ::Time.zone.today : ::Date.today
end
tomorrow()

Returns a new Date representing the date 1 day after today (i.e. tomorrow's date).

# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 25
def tomorrow
  ::Date.today.tomorrow
end
yesterday()

Returns a new Date representing the date 1 day ago (i.e. yesterday's date).

# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 20
def yesterday
  ::Date.today.yesterday
end