Skip to content

Commit

Permalink
The group should use same data accessor that its @search uses. This w…
Browse files Browse the repository at this point in the history
…ay it will use some options passed in: Eg :include
  • Loading branch information
brutuscat committed Mar 16, 2012
1 parent c290d35 commit 50b96f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sunspot/lib/sunspot/search/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def solr_docs
@doclist['docs']
end

def data_accessor_for(clazz)
@search.data_accessor_for(clazz)
end

#
# The total number of documents matching the query for this group
#
Expand Down

0 comments on commit 50b96f4

Please sign in to comment.