Sha256: 1004cd2776a3ab5d276101ce5f441485bd73fc3337621a97e41d9acf52b263b9
Contents?: true
Size: 440 Bytes
Versions: 1
Compression:
Stored size: 440 Bytes
Contents
puts "Address" class Address include Mongoid::Document extend Mongoid::Geo::Near attr_accessor :mode field :address_type field :number, :type => Integer field :street field :city field :state field :post_code field :location, :type => Array, :geo => true field :pos, :type => Array, :geo => true, :lat => :latitude, :lng => :longitude # key :street puts "call geo_index :location" geo_index :location end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_geo-0.6.0 | spec/models/address.rb |