• B
    Deprecate the delegation of Array bang methods in ActiveRecord::Delegation · 1a40be02
    Ben Woosley 提交于
    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.
    1a40be02
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 18.4 KB