You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
solidus/core/app/models/spree/product/scopes.rb
Line 161 in c09ead3
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.
The text was updated successfully, but these errors were encountered: