# File lib/active_support/core_ext/date_time/calculations.rb, line 107
  def compare_with_coercion(other)
    other = other.comparable_time if other.respond_to?(:comparable_time)
    other = other.to_datetime unless other.acts_like?(:date)
    compare_without_coercion(other)
  end