current()
public
Returns Time.zone.today when Time.zone or
config.time_zone are set, otherwise just returns Date.today.
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 48
def current
::Time.zone ? ::Time.zone.today : ::Date.today
end