mirror of
https://github.com/lingble/chatwoot.git
synced 2026-01-09 14:01:41 +00:00
* refactor: use has_email instead of email * feat: remove usage of details directly in forms * test: update payload * test: fix transcript test * refactor: use computed hasEmail --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
6 lines
222 B
Ruby
6 lines
222 B
Ruby
json.id @contact.id
|
|
json.has_email @contact.email.present?
|
|
json.has_name @contact.name.present?
|
|
json.has_phone_number @contact.phone_number.present?
|
|
json.widget_auth_token @widget_auth_token if @widget_auth_token.present?
|