Skip to content

Cannot call remove_from_ngram_index on collection #34

@Startouf

Description

@Startouf

The readme suggests it's possible to call Artwork.remove_from_ngram_index

But on ruby 2.3.3 and mongoid v6 it raises

NoMethodError: undefined method `mongo_v2?' for Artwork::Class

I believe there is a context issue in the module that defines that method. The mongo_v2 is indeed defined in some of this gem's module but is not called appropriately. I believe some similar method should be provided by the Mongoid Compatibility gem and should be called directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions