Method: Date.current
- Defined in:
- activesupport/lib/active_support/core_ext/date/calculations.rb
.current ⇒ Object
Returns Time.zone.today when Time.zone or config.time_zone are set, otherwise just returns Date.today.
48 49 50 |
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 48 def current ::Time.zone ? ::Time.zone.today : ::Date.today end |