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

Match_all respects context #487

Merged
merged 2 commits into from
Mar 12, 2014
Merged

Conversation

mikehale
Copy link
Contributor

@mikehale mikehale commented Mar 8, 2014

I found what I think is a bug when using match_all with a context. Previously with a query like

TaggableModel.tagged_with("css", :on => :skills, :match_all => true)

Only TaggedModels which had css as the only tag in any context would be returned, excluding models which had tags in other contexts, but only css in the skills context. With these changes match_all only applies to a specific context if one is given.

Supercedes #486.

@seuros
Copy link
Collaborator

seuros commented Mar 8, 2014

@mbleigh @bf4 can you double check before we merge ?

@mikehale
Copy link
Contributor Author

bump

@seuros
Copy link
Collaborator

seuros commented Mar 12, 2014

I just finished testing this PR, 👍

seuros added a commit that referenced this pull request Mar 12, 2014
@seuros seuros merged commit 3e7f905 into mbleigh:master Mar 12, 2014
@mikehale mikehale deleted the master-context-fix branch March 12, 2014 18:53
bf4 added a commit that referenced this pull request Mar 12, 2014
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
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.

2 participants