method
yesterday

Ruby on Rails latest stable (v5.2.3)
-
0 notes -
Class: ActiveSupport::CoreExtensions::Date::Calculations
yesterday()
public
Convenience method which returns a new Date/DateTime representing the time 1 day ago