Skip to content

NoMethodError: undefined method `compact' #27

Description

@did

It happens when you've got 2 fields: belongs_to + many_to_many in a same model.

The problem is that we don't set the inverse_of property of a belongs_to field but we have to in order to avoid that error.

Better explanation here:
https://github.com/mongoid/mongoid/issues/1434

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions