]> cat aescling's git repositories - mastodon.git/commit
Fix cache_collection crashing when given an empty collection (#15921)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 17 Mar 2021 23:41:32 +0000 (00:41 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Mar 2021 23:41:32 +0000 (00:41 +0100)
commit5027abecd1e5e511064de75fb5248139e1c8fe23
tree52325b75c25018397019ffb41593109b52683ea8
parent43eff898a0b0f31aaf042d9d387aaece2627a01d
Fix cache_collection crashing when given an empty collection (#15921)

* Fix cache_collection crashing when given an empty collection

* Add tests
app/controllers/concerns/cache_concern.rb
app/lib/entity_cache.rb
spec/controllers/concerns/cache_concern_spec.rb [new file with mode: 0644]
spec/lib/entity_cache_spec.rb [new file with mode: 0644]