Skip to content

Commit

Permalink
fixed the class type problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hodgson committed Mar 1, 2011
1 parent 00b5f72 commit 371f19e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mongoid_sphinx/mongoid/sphinx.rb
Expand Up @@ -27,7 +27,7 @@ def search_index(options={})
self.search_attributes = {}
self.index_options = options[:options] || {}
options[:attributes].each do |attrib|
self.search_attributes[attrib] = SPHINX_TYPE_MAPPING[self.fields[attrib.to_s].class.to_s] || 'str2ordinal'
self.search_attributes[attrib] = SPHINX_TYPE_MAPPING[self.fields[attrib.to_s].type.to_s] || 'str2ordinal'
end

MongoidSphinx.context.add_indexed_model self
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid_sphinx/version.rb
@@ -1,3 +1,3 @@
module MongoidSphinx #:nodoc
VERSION = "0.1.1"
VERSION = "0.1.2"
end
Binary file modified mongoid-sphinx-0.1.1.gem
Binary file not shown.

0 comments on commit 371f19e

Please sign in to comment.