Skip to content

Commit

Permalink
Making sure Model.sphinx_facets is initialised.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Sep 17, 2009
1 parent 5d07e63 commit 4552bf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/thinking_sphinx/active_record.rb
Expand Up @@ -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
Expand Down

0 comments on commit 4552bf8

Please sign in to comment.