method

compare_with_coercion

compare_with_coercion(other)
public

Layers additional behavior on DateTime#<=> so that Time and ActiveSupport::TimeWithZone instances can be compared with a DateTime