Skip to content

Commit f35f641

Browse files
Fix namespacing issue. Fixes #31
1 parent a139e82 commit f35f641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongoid_spacial/spacial/document.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module ClassMethods #:nodoc:
1616
# @param [Hash] options options for spacial_index
1717
def spacial_index name, *options
1818
self.spacial_fields_indexed << name
19-
index [[ name, Mongo::GEO2D ]], *options
19+
index [[ name, ::Mongo::GEO2D ]], *options
2020
end
2121
end
2222

0 commit comments

Comments
 (0)