The `validates_comparison_of` method was added in Rails 7.0. We aren't changing the `date_range` validation in polls yet because it's a bit complex; we'll do it in the next commit.
The `validates_comparison_of` method was added in Rails 7.0. We aren't changing the `date_range` validation in polls yet because it's a bit complex; we'll do it in the next commit.