Skip to content

Instantly share code, notes, and snippets.

@scaint
Created August 9, 2015 23:07
Show Gist options
  • Save scaint/43f36440534f1c313e45 to your computer and use it in GitHub Desktop.
Save scaint/43f36440534f1c313e45 to your computer and use it in GitHub Desktop.
Date.today # => Mon, 10 Aug 2015
Date.current # => Sun, 09 Aug 2015
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 24
# def today?
# to_date == ::Date.current
# end
Date.today.today? # => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment