Method: ActiveSupport::TimeZone#yesterday
- Defined in:
- activesupport/lib/active_support/values/time_zone.rb
#yesterday ⇒ Object
Returns the previous date in this time zone.
522 523 524 |
# File 'activesupport/lib/active_support/values/time_zone.rb', line 522 def yesterday today - 1 end |