aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/secure_token_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-02-18 08:23:26 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2016-02-18 08:23:26 -0800
commit3239ed48d28f3c0baf4445e6c279107e892b7cab (patch)
treea9860b5c54a42bd16615ae963341229f6c6698a8 /activerecord/test/cases/secure_token_test.rb
parent13c4cc3b5aea02716b7459c0da641438077f5236 (diff)
downloadrails-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 'activerecord/test/cases/secure_token_test.rb')
0 files changed, 0 insertions, 0 deletions