Skip to content

Instantly share code, notes, and snippets.

@ShopifyEng
Created November 14, 2022 22:23
Caching Without Marshal Part 2: The Path to MessagePack - the_migration_cache_miss.rb
CACHE_MISS_ERRORS = [
Paquito::ActiveRecordCoder::Error,
Paquito::ClassMissingError,
]
def handle_exceptions(...)
super
rescue *CACHE_MISS_ERRORS
on_miss
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment