aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-07 12:13:47 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-07 12:14:53 -0300
commit492e6b57d43524dd6183fd8f33e4bdd7e8e8ceeb (patch)
tree3a25811f26a28b56c40d437c3009d52185d31cca /activerecord/Rakefile
parent1eee48144b43212ef1624525b44c7bb2cb845f43 (diff)
downloadrails-492e6b57d43524dd6183fd8f33e4bdd7e8e8ceeb.tar.gz
rails-492e6b57d43524dd6183fd8f33e4bdd7e8e8ceeb.tar.bz2
rails-492e6b57d43524dd6183fd8f33e4bdd7e8e8ceeb.zip
Avoid iterating over records hash when not necessary
If the reflection scope is not flagged with distinct value, there is no need to iterate over the records, so we avoid that by doing the check before iterating rather than inside the iteration block.
Diffstat (limited to 'activerecord/Rakefile')
0 files changed, 0 insertions, 0 deletions