diff options
| author | User <hukl@cccms.ccc.de> | 2011-02-10 14:23:36 +0100 |
|---|---|---|
| committer | User <hukl@cccms.ccc.de> | 2011-02-10 14:23:36 +0100 |
| commit | 384b187e9e067ddf2bb4d5fad0c2deaf96f69c89 (patch) | |
| tree | cf743f377d3e2e28a31ae0359d95f37beba82cc3 /vendor/plugins/thinking-sphinx/features/support/models/post.rb | |
| parent | 3d0de09cf94cee6233b36a7f5ce20d5059854acc (diff) | |
| parent | cec2b1e2881db0000b2a09029154bea0fc62ade3 (diff) | |
Merge branch 'master' of ssh://svn.medienhaus.udk-berlin.de/usr/local/git/cccms
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/models/post.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/support/models/post.rb | 16 |
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 430d17c2..00000000 --- a/vendor/plugins/thinking-sphinx/features/support/models/post.rb +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | class 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 | ||
| 16 | end | ||
