Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Object#in? support for open date ranges
This leverages Range#cover? to properly handle beginless and endless range inclusion checks.
- Loading branch information
Showing
2 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
18 changes: 13 additions & 5 deletions
18
activesupport/lib/active_support/core_ext/object/inclusion.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters