diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-07 12:13:47 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-07 12:14:53 -0300 |
commit | 492e6b57d43524dd6183fd8f33e4bdd7e8e8ceeb (patch) | |
tree | 3a25811f26a28b56c40d437c3009d52185d31cca /actionmailer/lib/rails/generators | |
parent | 1eee48144b43212ef1624525b44c7bb2cb845f43 (diff) | |
download | rails-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 'actionmailer/lib/rails/generators')
0 files changed, 0 insertions, 0 deletions