Re-implement date comparison with Rails date helpers