Closed aximuseng closed 4 years ago
I am guessing ADR is chaining on a
.where(...
to theget_raw_records
and obviously SearchKick does not like this.
exactly
But you can implement your own adapter : https://github.com/jbox-web/ajax-datatables-rails/blob/master/lib/ajax-datatables-rails/orm/active_record.rb
Feel free to submit PR or ping me if you need help implementing the adapter.
Recently upgraded from v 0.4 and also trying to integrate Elasticsearch. Seemed to work ok on v0.4 but breaks on v1.0.
Here is what I have:
Searchkick ads a
search
method that returns your results. My controller now fails with:undefined method
where' for #I am at the point that I may just build my own jbuilder structure to return the results and allow full control over the filters, pagnation etc.
I was going to start digging into the code but I am guessing ADR is chaining on a
.where(...
to theget_raw_records
and obviously SearchKick does not like this.