diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-14 14:26:46 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-14 14:28:54 -0300 |
commit | 7b50d7f2496a84bec5aceb9e0fd1f1f9dcbdab88 (patch) | |
tree | d3f60f1267cfd8c47ac402953bc4a27665b1bdd9 /activerecord/test/fixtures/treasures.yml | |
parent | 548cb1cf7b7a6590cab9cbe28f8677c30c9c6871 (diff) | |
download | rails-7b50d7f2496a84bec5aceb9e0fd1f1f9dcbdab88.tar.gz rails-7b50d7f2496a84bec5aceb9e0fd1f1f9dcbdab88.tar.bz2 rails-7b50d7f2496a84bec5aceb9e0fd1f1f9dcbdab88.zip |
We need an explicit return
If we don't return early Ruby will memoize the value of the prefix of
the parent class what will make the subsequent searchs to not work as
expected.
If the early return we are avoiding the memoization.
But when using the deprecated path we need to memoize the value, so we
are not using early return for the deprecated path.
Diffstat (limited to 'activerecord/test/fixtures/treasures.yml')
0 files changed, 0 insertions, 0 deletions