I'm currently trying to migrate to activeadmin 3.0.0, which requires ransackable 4.3.0. This breaking change require to add ransackable_attributes and ransackable_associations as class methods in my models.
I have an Address model that I'm registering with active admin and I'm using the filters like this:
filter :street
I'm defining the ransackable_attributes in the Address model
def self.ransackable_attributes(auth_object = nil)
%w[street]
end
This is supposed to be enough for the filters to work but instead I get an error that has to do with the predicate of the column.
undefined method `street_starts_with' for Ransack::Search<class: Address, base: Grouping <combinator: and>>:Ransack::Search