diff options
| author | knapo <knapo@knapo.net> | 2011-07-07 11:40:11 +0200 |
|---|---|---|
| committer | knapo <knapo@knapo.net> | 2011-07-07 11:40:11 +0200 |
| commit | 2ca9b6dfab81c17bdad7d367c97e39c9ac25c075 (patch) | |
| tree | 36262f16c0245c510f9f9fdf14bd2bfcfa6bcba7 /activemodel/lib/active_model/mass_assignment_security/permission_set.rb | |
| parent | 1bad08f1168709a657110281f9a9e17c514eda92 (diff) | |
| download | rails-2ca9b6dfab81c17bdad7d367c97e39c9ac25c075.tar.gz rails-2ca9b6dfab81c17bdad7d367c97e39c9ac25c075.tar.bz2 rails-2ca9b6dfab81c17bdad7d367c97e39c9ac25c075.zip | |
Make `ActiveRecord::Batches#find_each` to not return `self`.
This caused that `find_each` was producing extra db call taking all the records from db, and was less efficient than `ActiveRecord::Base#all`.
Diffstat (limited to 'activemodel/lib/active_model/mass_assignment_security/permission_set.rb')
0 files changed, 0 insertions, 0 deletions
