The method `Date#all_day` was added in Rails 5.1, and returns the same interval we were using while it makes the code simple.
The method `Date#all_day` was added in Rails 5.1, and returns the same interval we were using while it makes the code simple.