rails/rails — comment on commit 0d3333257156544feba729ba28f6874d5a30d561
File: actionpack/lib/action_controller/metal/responder.rb line 164
By activars:

I couldn't find any clean code to handle this, do you mean with the following two options?
first option:

respond_with @user do |format|
format.json { render :json => @user.to_json(:includes=>:entry), :status => :accepted }
end

second option:

respond_to do |format|
format.json { render :json => @user.to_json(:includes=>:entry), :status => :accepted }
end

Or do you have better way to handle this?