change json contract
This commit is contained in:
@@ -1,2 +1,7 @@
|
||||
json.extract! user, :id, :username, :created_at, :updated_at
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user