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

Provide the Spree current user to the searcher class #2089

Closed
wants to merge 1 commit into
base: 1-2-stable
from

Conversation

Projects
None yet
2 participants
@steveh
Contributor

steveh commented Oct 16, 2012

I needed to provide the current user from my application to Spree, in order to hide results that were not relevant for that users location.

I figured this might be a common use case so I've attached a patch to do just that.

By default, it will do nothing at all with this information, the idea is this could be hooked in by extending the searcher class.

@radar radar closed this in e73a1cb Oct 16, 2012

radar added a commit that referenced this pull request Oct 16, 2012

radar added a commit that referenced this pull request Oct 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment