diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 08:23:26 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-02-18 08:23:26 -0800 |
commit | 3239ed48d28f3c0baf4445e6c279107e892b7cab (patch) | |
tree | a9860b5c54a42bd16615ae963341229f6c6698a8 /activesupport/lib/active_support/concern.rb | |
parent | 13c4cc3b5aea02716b7459c0da641438077f5236 (diff) | |
download | rails-3239ed48d28f3c0baf4445e6c279107e892b7cab.tar.gz rails-3239ed48d28f3c0baf4445e6c279107e892b7cab.tar.bz2 rails-3239ed48d28f3c0baf4445e6c279107e892b7cab.zip |
move digest cache on to the DetailsKey object
This moves digest calculation cache on to the details key object.
Before, the digest cache was a class level ivar, and one of the keys was
the hash value of the details key object:
https://github.com/rails/rails/blob/13c4cc3b5aea02716b7459c0da641438077f5236/actionview/lib/action_view/digestor.rb#L28
An object's hash value is not unique, so it's possible for this cache
key to produce colliding keys with no resolution. This commit move
cache on to the details key object itself, so we know that the digests
are always unique per details key object.
Diffstat (limited to 'activesupport/lib/active_support/concern.rb')
0 files changed, 0 insertions, 0 deletions