- Introduces JSON Schema validations via JSONSchemer - Add CRUD APIs for integration hooks
7 lines
250 B
Ruby
7 lines
250 B
Ruby
json.call(resource.params, *resource.params.keys)
|
|
json.name resource.name
|
|
json.description resource.description
|
|
json.enabled resource.enabled?(@current_account)
|
|
json.button resource.action
|
|
json.hooks @current_account.hooks.where(app_id: resource.id)
|