I have recently updated activeadmin and ransack gem, below code snippets is working fine with active admin and ransack gem using version :
active admin- 2.13.1
ransack: >= 2.1 , < 4
when I updated both version as:
**active admin: 3.2.1
ransack: >= 4.0
**
We could not get filtering by
`
<code> filter :store, as: :select, collection: proc { Spree::Store.pluck(:name, :id).uniq }
</code>
<code> filter :store, as: :select, collection: proc { Spree::Store.pluck(:name, :id).uniq }
</code>
filter :store, as: :select, collection: proc { Spree::Store.pluck(:name, :id).uniq }
we are getting as undefined method `store_id_eq’ for Ransack::Search<class: Spree::ShipmentDiscard, base: Grouping <combinator: and>>:Ransack::Search
What I tried:
- filter :store, as: :select, collection: proc { Spree::Store.pluck(:name, :id).uniq }, filters: [:eq]
2 filter :store_id, as: :select, collection: proc { Spree::Store.pluck(:name, :id).uniq }, filters: [:eq]