From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- vendor/plugins/thinking-sphinx/ginger_scenarios.rb | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/ginger_scenarios.rb (limited to 'vendor/plugins/thinking-sphinx/ginger_scenarios.rb') diff --git a/vendor/plugins/thinking-sphinx/ginger_scenarios.rb b/vendor/plugins/thinking-sphinx/ginger_scenarios.rb new file mode 100644 index 00000000..bd9f0d62 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/ginger_scenarios.rb @@ -0,0 +1,28 @@ +require 'ginger' + +Ginger.configure do |config| + config.aliases["active_record"] = "activerecord" + config.aliases["active_support"] = "activesupport" + + ar_1_2_6 = Ginger::Scenario.new + ar_1_2_6[/^active_?support$/] = "1.4.4" + ar_1_2_6[/^active_?record$/] = "1.15.6" + + ar_2_0_4 = Ginger::Scenario.new + ar_2_0_4[/^active_?support$/] = "2.0.4" + ar_2_0_4[/^active_?record$/] = "2.0.4" + + ar_2_1_2 = Ginger::Scenario.new + ar_2_1_2[/^active_?support$/] = "2.1.2" + ar_2_1_2[/^active_?record$/] = "2.1.2" + + ar_2_2_0 = Ginger::Scenario.new + ar_2_2_0[/^active_?support$/] = "2.2.0" + ar_2_2_0[/^active_?record$/] = "2.2.0" + + ar_2_3_0 = Ginger::Scenario.new + ar_2_3_0[/^active_?support$/] = "2.3.0" + ar_2_3_0[/^active_?record$/] = "2.3.0" + + config.scenarios << ar_1_2_6 << ar_2_0_4 << ar_2_1_2 << ar_2_2_0 << ar_2_3_0 +end \ No newline at end of file -- cgit v1.3