Files
postter/app/views/users/_user.json.jbuilder
João Victor Geonizeli aa0e1ac1c7 change json contract
2022-02-28 12:40:17 -03:00

8 lines
245 B
Ruby

json.extract! user, :id, :username
json.joined_at user.created_at.strftime("%B %d, %Y")
json.following_count user.following.count
json.follower_count user.followers.count
json.posts_count user.posts.count
json.url user_url(user, format: :json)