Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Simplify record jbuilder
Browse files Browse the repository at this point in the history
Co-authored-by: Caleb Denio <[email protected]>
  • Loading branch information
reesericci and cjdenio authored Jan 24, 2024
1 parent 5b73ece commit adaefcc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/views/api/v1/domains/records/_record.json.jbuilder
Original file line number Diff line number Diff line change
@@ -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)

Check failure on line 1 in app/views/api/v1/domains/records/_record.json.jbuilder

View workflow job for this annotation

GitHub Actions / StandardRB

app/views/api/v1/domains/records/_record.json.jbuilder#L1

Prefer the use of `json.call(r, :id, :name, :content, :type, :ttl, :domain_id)` over `json.(r, :id, :name, :content, :type, :ttl, :domain_id)`.

0 comments on commit adaefcc

Please sign in to comment.