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 better way pulling subscription info? #70

Open
ghost opened this issue Aug 4, 2016 · 0 comments
Open

Is there a better way pulling subscription info? #70

ghost opened this issue Aug 4, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 4, 2016

Sorry if this is the wrong place to ask, but is there a better way than below of pulling subscription info? I'm hoping that there is an eager loading option that I'm missing.

Currently I'm doing this:
account = ActiveZuora::Account.where(account_number: "12323").first account.subscriptions.scope.where(status: "Active").first.rate_plans.*.rate_plan_charges
That ends up creating 3 SOAP requests. Is there a way of eager loading similar to the REST API?

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

0 participants