method
current
v3.0.0 -
Show latest stable
- Class:
DateTime
current()public
No documentation available.
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 12
def current
::Time.zone_default ? ::Time.zone.now.to_datetime : ::Time.now.to_datetime
end