0
下面黑子Rails的情景has_and_belongs_to_many協會中沒有加載include指令,儘管:太陽黑子搜索包括未裝載has_and_belongs_to_many協會
has_and_belongs_to_many :predecessors, :join_table => 'next_phrases', :class_name => "Phrase", :foreign_key => 'next_id', :association_foreign_key => 'previous_id'
searchable :include =>[:predecessors] do
integer :predecessor_ids, :multiple => true,:references => Phrase
end
是我們做錯了什麼或者是一個錯誤?
如果我們調用self.association它的工作(:前身)用手