method
compare_with_coercion
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::CoreExtensions::DateTime::Calculations
compare_with_coercion(other)public
Layers additional behavior on DateTime#<=> so that Time and ActiveSupport::TimeWithZone instances can be compared with a DateTime