instance method
past?
Ruby on Rails 4.0.13
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 29
def past?
self < self.class.current
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations