Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
module AccountCacheRevalidator
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
after_commit :update_account_cache, on: [:create, :update, :destroy]
|
||||
end
|
||||
|
||||
def update_account_cache
|
||||
account.update_cache_key(self.class.name.underscore)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user