I have a model called Collection that I have Typesense wired up for. When I do a search, i.e.
keyword = params[:keyword] || "*"
attributes = params[:attributes] || "name"
search = Collection.pagy_search(keyword, attributes)
It immediately throws the error:
NoMethodError (undefined method 'where' for class Typesense::Collection)
I think my Collection model is somehow clashing with Typesense::Collection. Is there a way around this witjout having to rename my model?
I have a model called
Collectionthat I have Typesense wired up for. When I do a search, i.e.keyword = params[:keyword] || "*"attributes = params[:attributes] || "name"search = Collection.pagy_search(keyword, attributes)It immediately throws the error:
NoMethodError (undefined method 'where' for class Typesense::Collection)I think my Collection model is somehow clashing with Typesense::Collection. Is there a way around this witjout having to rename my model?