Displaying 1 result from an estimated 1 matches for "8313b644".
2013 Dec 17
1
Tire: Problem with including associations while doing a multi-model search
I am using elasticsearch for querying in my application. Lets say there
are 2 models
Class Topic
has_many :posts
and
Class Article
has_many :comments
I want to do a combined search on both these models and my query looks
like:
Tire.search [Article, Topic], {:load => {:include => [:posts,
:comments]}} do |search|
...
end
This is where I encounter a problem. I get the
Association