From 1c4747810425e75f6aa63edd91a056543650fbcb Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 24 Jul 2023 13:00:09 +0530 Subject: [PATCH] fix: undefined method `update_cache_key` for nil:NilClass (#7568) --- app/models/concerns/account_cache_revalidator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/account_cache_revalidator.rb b/app/models/concerns/account_cache_revalidator.rb index 21dcf0d63..32d7500f8 100644 --- a/app/models/concerns/account_cache_revalidator.rb +++ b/app/models/concerns/account_cache_revalidator.rb @@ -2,7 +2,7 @@ module AccountCacheRevalidator extend ActiveSupport::Concern included do - after_commit :update_account_cache + after_commit :update_account_cache, on: [:create, :update] end def update_account_cache