* Refactor jbuilder for articles * Refactor remaining jbuilder files * Fix specs * Remove content_truncated from response template JSON Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
7 lines
189 B
Ruby
7 lines
189 B
Ruby
json.array! @webhooks.each do |endpoint|
|
|
json.type_of "webhook_endpoint"
|
|
|
|
json.extract!(endpoint, :id, :source, :target_url, :events)
|
|
|
|
json.created_at endpoint.created_at.rfc3339
|
|
end
|