Skip to content

Naming Convention Conflict? #20

@haleyngonadi

Description

@haleyngonadi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions