change json contract
This commit is contained in:
3
app/views/posts/_user.json.jbuilder
Normal file
3
app/views/posts/_user.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.extract! user, :id, :username
|
||||
|
||||
json.url user_url(user, format: :json)
|
||||
Reference in New Issue
Block a user