diff options
author | Jon McCartie <jon@mccartie.com> | 2016-07-21 16:47:27 -0500 |
---|---|---|
committer | Jon McCartie <jon@mccartie.com> | 2016-07-21 17:23:33 -0500 |
commit | 4db6ac29f24f3d38401f4cf243a7a70b07e964e1 (patch) | |
tree | 4002a2a48636c39a7bb431f4a31e816e1be0fe95 /activesupport/CHANGELOG.md | |
parent | 929a6500806fe671d9ac0002da8537bf26b8f25d (diff) | |
download | rails-4db6ac29f24f3d38401f4cf243a7a70b07e964e1.tar.gz rails-4db6ac29f24f3d38401f4cf243a7a70b07e964e1.tar.bz2 rails-4db6ac29f24f3d38401f4cf243a7a70b07e964e1.zip |
Adds `not_in?` onto Object
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index b24f9e6987..70bfd29393 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,15 @@ +* Introduce `not_in?` on `Object`. + + As an opposite method for `in?`, `not_in?` provides equivalent support for exclusion. This turns this: + + [1,2].exclude?(user_id) + + ...into this: + + user_id.not_in?([1,2]) + + *Jon McCartie* + * Defines `Regexp.match?` for Ruby versions prior to 2.4. The predicate has the same interface, but it does not have the performance boost. It's purpose is to be able to write 2.4 compatible code. |