We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a139e82 commit f35f641Copy full SHA for f35f641
lib/mongoid_spacial/spacial/document.rb
@@ -16,7 +16,7 @@ module ClassMethods #:nodoc:
16
# @param [Hash] options options for spacial_index
17
def spacial_index name, *options
18
self.spacial_fields_indexed << name
19
- index [[ name, Mongo::GEO2D ]], *options
+ index [[ name, ::Mongo::GEO2D ]], *options
20
end
21
22
0 commit comments