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
Error on Search on belongs_to with class_name option #1179
Comments
Having the same issue.
It's trying to use the Rails 5.1.7 |
It might be fixed in #1264 |
This is still not working to the best of my knowledge and it's a shame because I have a lot of custom class names that now can't be searchable. |
Agreed -- I am still having this issue |
Alternative to #1264. Fixes #1179. Currently, `Administrate::Search::Query` makes the assumption that an association's table name will have the same name as the association attribute, ignoring a `:class_name` option that signals otherwise. This change uses the `:class_name` option when given. Changing the example app also provides a way to test this as part of the existing feature specs.
Should be fixed now. Please let us know if not. |
@pablobm Still having the same issue on v0.13. It still tries searching in the table named In the model I have Is it already on 0.13? |
@andrepcg release 0.13.0 was on March 13 but that PR was merged on March 21. Could you try master? |
Alternative to thoughtbot/administrate#1264. Fixes thoughtbot/administrate#1179. Currently, `Administrate::Search::Query` makes the assumption that an association's table name will have the same name as the association attribute, ignoring a `:class_name` option that signals otherwise. This change uses the `:class_name` option when given. Changing the example app also provides a way to test this as part of the existing feature specs.
Error:
Dashboard:
Model:
The text was updated successfully, but these errors were encountered: