whitelisted_ransackable_associations set to 'true' if previously unset
mvz opened this issue · 2 comments
mvz commented
In app/models/spree_i18n/translatable.rb, the following line only works if whitelisted_ransackable_associations
was previously an array:
klass.whitelisted_ransackable_associations |= ['translations']
For some models (e.g., Spree::Promotion
), this value is not set by plain Spree at all, causing it to be set to true
. This leads to errors:
NoMethodError: undefined method `include?' for true:TrueClass
mvz commented
All this is on branch 3-0-stable
.