diff options
author | Evan Light <evan@tripledogdare.net> | 2011-07-13 22:17:38 -0400 |
---|---|---|
committer | Evan Light <evan@tripledogdare.net> | 2011-07-14 14:04:02 -0400 |
commit | f13dea8a3463b753a69c22fc27648160c013fc3b (patch) | |
tree | 0e7ec6af48a35a34a829ffdc9fe872d7139cca71 /activerecord/test/models/line_item.rb | |
parent | 003c6516dcffcd846d1f257a16062cea657cbd33 (diff) | |
download | rails-f13dea8a3463b753a69c22fc27648160c013fc3b.tar.gz rails-f13dea8a3463b753a69c22fc27648160c013fc3b.tar.bz2 rails-f13dea8a3463b753a69c22fc27648160c013fc3b.zip |
Fix and unit test for https://github.com/rails/rails/issues/2059
Cache key was incorrectly using timezone-dependent record#updated_at when it should be using a timezone-independent value to generate the cache key
Minor refactoring to cache_key timezone test
Closes #2059
Adds a test to validate the format of the cache_key for nil and present updated_at values
Correctly handles updated_at == nil
Diffstat (limited to 'activerecord/test/models/line_item.rb')
0 files changed, 0 insertions, 0 deletions