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-2.0.9 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.9 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.8 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.8 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.7 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.6 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.7 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.5 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.6 features/thinking_sphinx/models/comment.rb
sayso-thinking-sphinx-2.0.3.002 features/thinking_sphinx/models/comment.rb
sayso-thinking-sphinx-2.0.3.001 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.4 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.5 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.3 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.4 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.3 features/thinking_sphinx/models/comment.rb
thinking-sphinx-2.0.2 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.2 features/thinking_sphinx/models/comment.rb
thinking-sphinx-1.4.1 features/thinking_sphinx/models/comment.rb
joshcutler-thinking-sphinx-1.3.18 features/thinking_sphinx/models/comment.rb