3 lines
102 B
Ruby
3 lines
102 B
Ruby
json.extract! post, :id, :content, :created_at
|
|
json.user(post.user, partial: 'posts/user', as: :user)
|