yesterday?()
Returns true if the date/time is yesterday.
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 41 def yesterday? to_date == ::Date.current.yesterday end