diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2013-09-03 21:46:33 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2013-09-04 01:32:27 -0700 |
commit | 1a40be02113287d9a003f8224e91b9f623857f4b (patch) | |
tree | ee93651b60297fbdc30bc05d71a8ec3e5b48f0dc /actionpack/CHANGELOG.md | |
parent | 5e41cb4a1e7e48a23f9387f2794d69e7fabf44c0 (diff) | |
download | rails-1a40be02113287d9a003f8224e91b9f623857f4b.tar.gz rails-1a40be02113287d9a003f8224e91b9f623857f4b.tar.bz2 rails-1a40be02113287d9a003f8224e91b9f623857f4b.zip |
Deprecate the delegation of Array bang methods in ActiveRecord::Delegation
The primary means of returning results for Array bang methods is to modify
the array in-place. When you call these methods on a relation, that
array is created, modified, and then thrown away. Only the secondary
return value is exposed to the caller.
Removing this delegation is a straight-forward way to reduce user error
by forcing callers to first explicitly call #to_a in order to expose
the array to be acted on by the bang method.
Diffstat (limited to 'actionpack/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions