Permalink
Browse files

Making sure Model.sphinx_facets is initialised.

  • Loading branch information...
1 parent 5d07e63 commit 4552bf85ce9dff305d9676afab07abb02b86ec33 @pat pat committed Sep 17, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/thinking_sphinx/active_record.rb
@@ -75,6 +75,7 @@ def define_index(&block)
return unless ThinkingSphinx.define_indexes?
self.sphinx_indexes ||= []
+ self.sphinx_facets ||= []
index = ThinkingSphinx::Index::Builder.generate(self, &block)
self.sphinx_indexes << index

0 comments on commit 4552bf8

Please sign in to comment.