diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-08-22 11:24:00 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-08-22 11:26:06 -0700 |
commit | 9384fa43cc7bbb32a2683821eaa9383344f03ebd (patch) | |
tree | 6f887568d3a82f8197804a25345aaccf8bc50b6a /activejob/lib | |
parent | b47d8dea25aa4c1b0d02603adc00cf63f2163f21 (diff) | |
download | rails-9384fa43cc7bbb32a2683821eaa9383344f03ebd.tar.gz rails-9384fa43cc7bbb32a2683821eaa9383344f03ebd.tar.bz2 rails-9384fa43cc7bbb32a2683821eaa9383344f03ebd.zip |
Cache the value of `changed_attributes` when calling `changes_applied`
`changes_applied` calles `changes`, which will call `changed_attributes`
multiple times in a loop. This method actually performs work now, so we
should cache the results while looping over it when we know it cannot
change.
Diffstat (limited to 'activejob/lib')
0 files changed, 0 insertions, 0 deletions