fix: Add available_name as method in captain_assistant (#11502)

Fixes
https://linear.app/chatwoot/issue/CW-4366/actionviewtemplateerror-undefined-method-available-name-for-an
This commit is contained in:
Pranav
2025-05-17 10:06:36 -07:00
committed by GitHub
parent f0e8cf4ffe
commit f8225f851f
2 changed files with 8 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ class Captain::Assistant < ApplicationRecord
scope :for_account, ->(account_id) { where(account_id: account_id) }
def available_name
name
end
def push_event_data
{
id: id,