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

Query method called with non-attribute argument(s) Error #4968

Closed
cmbaldwin opened this issue Mar 8, 2023 · 0 comments · Fixed by #4969
Closed

Query method called with non-attribute argument(s) Error #4968

cmbaldwin opened this issue Mar 8, 2023 · 0 comments · Fixed by #4969

Comments

@cmbaldwin
Copy link
Contributor

cmbaldwin commented Mar 8, 2023

Tried calling this method (descend_by_popularity) for Spree::Product in console and got the error: `disallow_raw_sql!': Query method called with non-attribute argument(s)

Perhaps this scope is not used very often, I couldn't find a reference to it anywhere else in the repo or in either solidus_starter_frontend or solidus_frontend.

Anyway, it appears to be a quick fix, just need to add Arel.sql, will submit a pull request.

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 a pull request may close this issue.

1 participant