instance method
past?
Ruby on Rails 6.1.7.10
Since v4.0.13Signature
past?()
Returns true if the date/time is in the past.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 47
def past?
self < self.class.current
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations