次のように関連付けられた3つのモデル(レール内)があります
class Content
has_and_belongs_to_many :groups
end
class Group
has_and_belongs_to_many :groups
has_and_belongs_to_many :users
end
class User
has_and_belongs_to_many :groups
end
Sunspot でコンテンツを検索すると、すべてのコンテンツが表示されます。ただし、現在のユーザーがメンバーになっているグループにあるコンテンツを最初に表示したいと思います。
これは可能ですか?