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
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