Chatwoot/app/views/api/v1/models/_app.json.jbuilder
Geophilus Durairaj bd445216e9
fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560)
fixes the warning: Rendering actions with '.' in the name is deprecated
2022-10-05 17:24:34 -07:00

11 lines
388 B
Ruby

json.call(resource.params, *resource.params.keys)
json.name resource.name
json.description resource.description
json.enabled resource.enabled?(@current_account)
json.action resource.action
json.button resource.action
json.hooks do
json.array! @current_account.hooks.where(app_id: resource.id) do |hook|
json.partial! 'api/v1/models/hook', formats: [:json], resource: hook
end
end