diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-09-07 11:35:01 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-10-22 09:04:47 +0530 |
commit | 56bfaf7f03882f738bb65fd232b4c67541afc4f5 (patch) | |
tree | d81f7eb252bf96cf8b7e0ef166431dd8bef9d6ab /activerecord/test/cases/enum_test.rb | |
parent | 7bbd3e68ed137af2adf33e8ad06aaa8c1b7d7069 (diff) | |
download | rails-56bfaf7f03882f738bb65fd232b4c67541afc4f5.tar.gz rails-56bfaf7f03882f738bb65fd232b4c67541afc4f5.tar.bz2 rails-56bfaf7f03882f738bb65fd232b4c67541afc4f5.zip |
Fix regression caused due to removal of select method from CollectionAssociation
- CollectionAssociation#select was removed in
https://github.com/rails/rails/pull/25989 in favor of
QueryMethods#select but it caused a regression when passing arguments
to select and a block.
- This used to work earlier in Rails 4.2 and Rails 5. See gist
https://gist.github.com/prathamesh-sonpatki/a7df922273473a77dfbc742a4be4b618.
- This commit restores the behavior of Rails 4.2 and Rails 5.0.0 to
allow passing arguments and block at the same time but also deprecates
it.
- Because, these arguments do not have any effect on the output of
select when select is used with a block.
- Updated documentation to remove the example passing arguments and
block at the same time to `CollectionProxy#select`.
Diffstat (limited to 'activerecord/test/cases/enum_test.rb')
0 files changed, 0 insertions, 0 deletions