summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/support/lib
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-28 00:15:53 +0200
committerhukl <contact@smyck.org>2009-05-01 17:14:02 +0200
commit4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch)
treef4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/features/support/lib
parentd3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff)
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/support/lib')
-rw-r--r--vendor/plugins/thinking-sphinx/features/support/lib/generic_delta_handler.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/support/lib/generic_delta_handler.rb b/vendor/plugins/thinking-sphinx/features/support/lib/generic_delta_handler.rb
new file mode 100644
index 0000000..7e9f96b
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/features/support/lib/generic_delta_handler.rb
@@ -0,0 +1,8 @@
1class GenericDeltaHandler < ThinkingSphinx::Deltas::DefaultDelta
2
3 def index(model, instance = nil)
4 #do nothing but set a bit for every record
5 #this is just a demonstration of extensibility
6 model.update_all(:changed_by_generic => true)
7 end
8end \ No newline at end of file