From adaefcc9d8989f2860de88ab973a5f732377092e Mon Sep 17 00:00:00 2001 From: Reese Armstrong Date: Wed, 24 Jan 2024 11:11:21 -0600 Subject: [PATCH] Simplify record jbuilder Co-authored-by: Caleb Denio --- app/views/api/v1/domains/records/_record.json.jbuilder | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/views/api/v1/domains/records/_record.json.jbuilder b/app/views/api/v1/domains/records/_record.json.jbuilder index bc7794a..ca8e3e9 100644 --- a/app/views/api/v1/domains/records/_record.json.jbuilder +++ b/app/views/api/v1/domains/records/_record.json.jbuilder @@ -1,6 +1 @@ -json.id r.id -json.name r.name -json.content r.content -json.type r.type -json.ttl r.ttl -json.domain_id r.domain_id +json.(r, :id, :name, :content, :type, :ttl, :domain_id)