summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/support/models/post.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2011-02-10 14:19:00 +0100
committerhukl <contact@smyck.org>2011-02-10 14:19:00 +0100
commit7379daad1c73bd3610ed296436250b417ac3673d (patch)
tree04f722efc678de9d3aa5bf8f1c96e3be33b18bc4 /vendor/plugins/thinking-sphinx/features/support/models/post.rb
parent91633ac4419d839661e35ae8f2efe5c9089cfb67 (diff)
removed thinking_sphinx plugin and replaced it with gem.
also tuned dependencies
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/models/post.rb')
-rw-r--r--vendor/plugins/thinking-sphinx/features/support/models/post.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/support/models/post.rb b/vendor/plugins/thinking-sphinx/features/support/models/post.rb
deleted file mode 100644
index 430d17c..0000000
--- a/vendor/plugins/thinking-sphinx/features/support/models/post.rb
+++ /dev/null
@@ -1,16 +0,0 @@
1class Post < ActiveRecord::Base
2 has_many :comments, :dependent => :destroy
3 has_many :taggings, :as => :taggable
4 has_many :tags, :through => :taggings
5 belongs_to :category
6
7 define_index do
8 indexes subject
9 indexes content
10 indexes tags.text, :as => :tags
11 indexes comments.content, :as => :comments
12
13 has comments(:id), :as => :comment_ids, :source => :ranged_query
14 has category.name, :facet => true, :as => :category_name, :type => :string
15 end
16end