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

Allow paging and order filtering on the my orders endpoint #4099

Closed
wants to merge 2 commits into from
Closed

Allow paging and order filtering on the my orders endpoint #4099

wants to merge 2 commits into from

Conversation

richardnuno
Copy link
Contributor

Also changed the mine rabl template to extend the show template so that more information about each order is returned.

if lookup_context.find_all("spree/api/orders/#{@order.state}").present?
extends "spree/api/orders/#{@order.state}"
if lookup_context.find_all("spree/api/orders/#{root_object.state}").present?
extends "spree/api/orders/#{root_object.state}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about root_object.

@radar
Copy link
Contributor

radar commented Dec 17, 2013

Added to master and 2-1-stable. Thanks!

radar pushed a commit that referenced this pull request Dec 17, 2013
radar pushed a commit that referenced this pull request Dec 17, 2013
@radar radar closed this in bae546b Dec 17, 2013
radar pushed a commit that referenced this pull request Dec 17, 2013
@athal7 athal7 deleted the feature/my-orders-filtering branch February 10, 2014 15:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants