diff options
author | Brian Morearty <brian@morearty.org> | 2013-05-01 04:32:20 -0700 |
---|---|---|
committer | Brian Morearty <brian@morearty.org> | 2013-05-01 04:32:20 -0700 |
commit | d7da403dde3a037a014741420bb7c6e7c7521a48 (patch) | |
tree | b4ae451a05c7abbfa71005322666e02b32455cfd /railties/lib/rails | |
parent | 7ead1d81431b2c2c0366347b7bfdf9a329b6f934 (diff) | |
download | rails-d7da403dde3a037a014741420bb7c6e7c7521a48.tar.gz rails-d7da403dde3a037a014741420bb7c6e7c7521a48.tar.bz2 rails-d7da403dde3a037a014741420bb7c6e7c7521a48.zip |
Revert "Object#in? also accepts multiple parameters"
This reverts commit ebf69ab1636df74c76332c53bcd3d8494fb91b45.
`in?` must not take multiple parameters because its behavior would be
ambiguous:
# Test if "B" is included in a list of names with `"B".in?(*names)`:
names = ["BMorearty"]
"B".in?(*names) # => true
names = ["BMorearty","rubyduo"]
"B".in?(*names) # => false
Conflicts:
activesupport/lib/active_support/core_ext/object/inclusion.rb
activesupport/test/core_ext/object/inclusion_test.rb
Diffstat (limited to 'railties/lib/rails')
0 files changed, 0 insertions, 0 deletions