summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/support/models/developer.rb
blob: d461ebca6d0cb8f013c2baee44b825708dbf16aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class Developer < ActiveRecord::Base
  has_many :taggings, :as => :taggable
  has_many :tags, :through => :taggings
  
  define_index do
    indexes country,  :facet => true
    indexes state,    :facet => true
    has age,          :facet => true
    has tags(:id), :as => :tag_ids, :facet => true
    facet city
  end
end