Files
postter/app/views/posts/_post.json.jbuilder
João Victor Geonizeli 1d692b31f8 add post
2022-02-27 17:02:37 -03:00

4 lines
144 B
Ruby

json.extract! post, :id, :content, :user_id, :created_at, :updated_at
json.url post_url(post, format: :json)
json.quoted_post(post.quoted_post)