Method: ActiveSupport::TimeWithZone#yesterday?
- Defined in:
- lib/active_support/time_with_zone.rb
#yesterday? ⇒ Boolean Also known as: prev_day?
Returns true if the current object’s time falls within the previous day (yesterday).
274 275 276 |
# File 'lib/active_support/time_with_zone.rb', line 274 def yesterday? time.yesterday? end |