aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/auto_id.rb
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2013-09-03 21:46:33 -0700
committerBen Woosley <ben.woosley@gmail.com>2013-09-04 01:32:27 -0700
commit1a40be02113287d9a003f8224e91b9f623857f4b (patch)
treeee93651b60297fbdc30bc05d71a8ec3e5b48f0dc /activerecord/test/models/auto_id.rb
parent5e41cb4a1e7e48a23f9387f2794d69e7fabf44c0 (diff)
downloadrails-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 'activerecord/test/models/auto_id.rb')
0 files changed, 0 insertions, 0 deletions