Sha256: be3a2aa6900b131f29bd47a34bb5a03c1b7566a38e965960a9c3cf638723bd30

Contents?: true

Size: 214 Bytes

Versions: 81

Compression:

Stored size: 214 Bytes

Contents

class Comment < ActiveRecord::Base
  define_index do 
    indexes :content
    
    has category.name, :facet => true, :as => :category_name, :type => :string
  end
  
  belongs_to :post
  belongs_to :category
end

Version data entries

81 entries across 81 versions & 13 rubygems

Version Path
thinking-sphinx-1.3.7 features/support/models/comment.rb