Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to expose scoped associations in json? #131

Open
zackperdue opened this issue Jul 7, 2015 · 1 comment
Open

Is there a way to expose scoped associations in json? #131

zackperdue opened this issue Jul 7, 2015 · 1 comment

Comments

@zackperdue
Copy link

Is it possible to do something like this?

  def action 
        expose Team.find(params[:id]), include: :players.offensive
  end
@Sutto
Copy link
Owner

Sutto commented Jul 8, 2015

as in include them in the serialization? If that's the case, rocket pants doesn't do serialization itself, we just invoke the serializer - so what ever you use to do serialization, your options are passed into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants