Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 42 lines (34 sloc) 0.952 kb
8cb8730 mostly ported
Burke Libbey authored
1 # MongoSphinx, a full text indexing extension for using
2fd4642 @ulbrich Fixed some docs and comments.
ulbrich authored
2 # Sphinx.
81d7f89 @ulbrich Initial upload.
ulbrich authored
3 #
4 # This file contains the includes implementing this library. Have a look at
5 # the README.rdoc as a starting point.
6
8cb8730 mostly ported
Burke Libbey authored
7 begin
8 require 'rubygems'
9 rescue LoadError; end
7582b52 Making things better.
Joost Hietbrink authored
10 require 'mongo_mapper'
81d7f89 @ulbrich Initial upload.
ulbrich authored
11 require 'riddle'
12
13
8cb8730 mostly ported
Burke Libbey authored
14 module MongoSphinx
15 if (match = __FILE__.match(/mongosphinx-([0-9.-]*)/))
81d7f89 @ulbrich Initial upload.
ulbrich authored
16 VERSION = match[1]
17 else
18 VERSION = 'unknown'
19 end
20 end
21
22 require 'lib/multi_attribute'
23 require 'lib/indexer'
24 require 'lib/mixins/indexer'
25 require 'lib/mixins/properties'
9aeb59d ITS PEANUT BUTTER COMMIT TIME
Burke Libbey authored
26
27
28 # Include the Indexer mixin from the original Document class of
29 # MongoMapper which adds a few methods and allows calling method indexed_with.
30
31 module MongoMapper # :nodoc:
32 module Document # :nodoc:
33 include MongoMapper::Mixins::Indexer
34 module InstanceMethods
35 include MongoMapper::Mixins::Properties
36 end
37 module ClassMethods
38 include MongoMapper::Mixins::Indexer::ClassMethods
39 end
40 end
41 end
Something went wrong with that request. Please try again.