Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
to_date()
public
Converts self to a Ruby Date object; time portion is discarded.
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 62
def to_date
::Date.new(year, month, day)
end