Closed
Description
See discussion in
But is basically the example by @jszwedko
PostController
...
def show
render json: @post, user_id: 1234
end
...
PostSerializer
...
def my_comments
Comments.where(user_id: instance_options[:user_id], post_id: object.id)
end
...