rails
rails copied to clipboard
Add on or before and on or after datetime comparisons
Summary
Added DateTime
helpers on_or_before?
and on_or_after?
based off this request https://discuss.rubyonrails.org/t/proposal-create-datetime-helpers-on-or-before-and-on-or-after/80410 which would allow a date or time to be compared to another date or time and determine if the date/time is the same or before or after.
Other Information
N/A
I don't believe the spec failures are related to the changes made in this PR.
Thank you for the pull request but I don't think this feature will be common enough to justify the inclusion to the framework. And sorry for the delay on providing this feedback.