to_date()
A method to keep Time, Date and DateTime instances interchangeable on conversions. In this case, it simply returns self.
# File activesupport/lib/active_support/core_ext/date/conversions.rb, line 68 def to_date self end