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

Unable to search on belongs_to association ID in mongoid #3077

Open
mltsy opened this issue Oct 22, 2018 · 0 comments
Open

Unable to search on belongs_to association ID in mongoid #3077

mltsy opened this issue Oct 22, 2018 · 0 comments

Comments

@mltsy
Copy link

mltsy commented Oct 22, 2018

I have a Classification model, whose instances belong_to a ClientProduct. ClientProduct has_one Classification. I have enabled querying by this association with:

configure :client_product do
  queryable true
end

But when I'm on the list view for Classifications, and I type in a ClientProduct id to search by, nothing is returned. If I select the ClientProduct filter, and say "is exactly" with the same ID, it returns the correct product. But I should be able to query by the ID using the search box as well, right?

May be related to this issue (duplicate?): #1849

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

1 participant