summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/ginger_scenarios.rb
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/ginger_scenarios.rb
parentd3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff)
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/ginger_scenarios.rb')
-rw-r--r--vendor/plugins/thinking-sphinx/ginger_scenarios.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/ginger_scenarios.rb b/vendor/plugins/thinking-sphinx/ginger_scenarios.rb
new file mode 100644
index 0000000..bd9f0d6
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/ginger_scenarios.rb
@@ -0,0 +1,28 @@
1require 'ginger'
2
3Ginger.configure do |config|
4 config.aliases["active_record"] = "activerecord"
5 config.aliases["active_support"] = "activesupport"
6
7 ar_1_2_6 = Ginger::Scenario.new
8 ar_1_2_6[/^active_?support$/] = "1.4.4"
9 ar_1_2_6[/^active_?record$/] = "1.15.6"
10
11 ar_2_0_4 = Ginger::Scenario.new
12 ar_2_0_4[/^active_?support$/] = "2.0.4"
13 ar_2_0_4[/^active_?record$/] = "2.0.4"
14
15 ar_2_1_2 = Ginger::Scenario.new
16 ar_2_1_2[/^active_?support$/] = "2.1.2"
17 ar_2_1_2[/^active_?record$/] = "2.1.2"
18
19 ar_2_2_0 = Ginger::Scenario.new
20 ar_2_2_0[/^active_?support$/] = "2.2.0"
21 ar_2_2_0[/^active_?record$/] = "2.2.0"
22
23 ar_2_3_0 = Ginger::Scenario.new
24 ar_2_3_0[/^active_?support$/] = "2.3.0"
25 ar_2_3_0[/^active_?record$/] = "2.3.0"
26
27 config.scenarios << ar_1_2_6 << ar_2_0_4 << ar_2_1_2 << ar_2_2_0 << ar_2_3_0
28end \ No newline at end of file