Sha256: 7539c99f60f54c2b96e3bee0aa4a28b768810526d7c6cfa8cf38b1264011b5bf
Contents?: true
Size: 612 Bytes
Versions: 8
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Criterion #:nodoc: module Inclusion # Adds a criterion to the +Criteria+ that specifies values to do # geospacial searches by. The field must be indexed with the "2d" option. # # @example Adding the criterion. # criteria.near(:field1 => [30, -44]) # # @param [ Hash ] attributes The fields with lat/long values. # # @return [ Criteria ] A new criteria with the added selector. def nearSphere(attributes = {}) update_selector(attributes, "$nearSphere") end end end end
Version data entries
8 entries across 8 versions & 1 rubygems