diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-21 22:23:41 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-21 22:23:41 -0200 |
commit | a9aeba671d7af941b790afa7d0126f5b7c52aa7f (patch) | |
tree | a73f4abd20a8a42064916670a0ea6fe401ccc7ad /actionpack | |
parent | ae934aef4af05f21d231015485cbc5a96df7a4d6 (diff) | |
parent | fd1c45761e023cecdc9ad472df64f8c265e25aaf (diff) | |
download | rails-a9aeba671d7af941b790afa7d0126f5b7c52aa7f.tar.gz rails-a9aeba671d7af941b790afa7d0126f5b7c52aa7f.tar.bz2 rails-a9aeba671d7af941b790afa7d0126f5b7c52aa7f.zip |
Merge branch 'deprecate-calculations-with-block'
Follow up of the discussion from the original merge commit:
https://github.com/rails/rails/commit/f9cb645dfcb5cc89f59d2f8b58a019486c828c73#commitcomment-1414561
We want to avoid people's mistakes with methods like count and sum when
called with a block, that can easily lead to code performing poorly and
that could be way better written with a db query.
Please check the discussion there for more background.
Closes #8268
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions