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
name is included by default in all the models, even the ones which don't have a name column, such as Spree::Variant, causing Ransack searches like this:
Fixessolidusio#3179. `name` column included by default within default
ransackable attributes causes ransack searches with search matchers
based on `name` column to crash when appied on models which don’t have a
`name` column. This PR removes the `name` column from default
ransackable attributes and adds it explicitly on models which support
search by name.
I stumbled upon a Ransack misconfiguration:
solidus/core/app/models/concerns/spree/ransackable_attributes.rb
Line 10 in 4d53bdc
name
is included by default in all the models, even the ones which don't have aname
column, such asSpree::Variant
, causing Ransack searches like this:fail with the following error:
Instead of discarding the
name
matcher.Solidus Version:
2.9.0.alpha@4d53bdc92
To Reproduce
Current behavior
Expected behavior
The text was updated successfully, but these errors were encountered: