Niejednoznaczny związek w Mongoid

Usiłuję mieć viewer_ids w modelu Post, aby zapisać user_ids i seen_ids w modelu użytkownika do post_ids, które zostały wyświetlone. Podczas testowania za pomocą Rspec dodawania / usuwania i uzyskiwania dostępu do relacji użytkownika, działa świetnie. Ale gdy używam RABL do przeglądania postu - gdy dane użytkownika są osadzone - staje się mylące i daje mi niejednoznaczny związek.

#Post class
belongs_to :user
has_and_belongs_to_many :viewers, class_name: 'User', inverse_of: :viewed  

#User class
has_many :users
has_and_belongs_to_many :viewed, class_name: 'Post', inverse_of: :viewers
Mongoid :: Errors :: AmbiguousRelationship w Posts # show
Problem:
Ambiguous relations :posts, :viewed defined on User.
Summary:
When Mongoid attempts to set an inverse document of a relation in memory, it needs to know which relation it belongs to. When setting :user, Mongoid looked on the class Post for a matching relation, but multiples were found that could potentially match: :posts, :viewed.
Resolution:
On the :user relation on Post you must add an :inverse_of option to specify the exact relationship on User that is the opposite of :user.

Więc jaki jest problem, definiuję zarówno relacje, jak i ich odwrotność. Czy nie jest możliwe posiadanie różnych danych w odwrotności relacji?

questionAnswers(1)

yourAnswerToTheQuestion