app/models/trackable_location.rb in mitamirri-0.13.8 vs app/models/trackable_location.rb in mitamirri-2.0.8
- old
+ new
@@ -1,19 +1,13 @@
-class TrackableLocation
+class TrackableLocation < TrackableBase
- include MongoMapper::Document
+ include Mongoid::Document
- # MongoMapper Setup ==============================================================================
+ # Mongoid Setup ==============================================================================
- key :location, String, :index => true
- key :latitude, String
- key :longitude, String
-
- # Scopes =========================================================================================
-
- # Constants ======================================================================================
+ field :location
+ field :latitude
+ field :longitude
- # Class Methods ==================================================================================
-
- # Instance Methods ===============================================================================
+ index :location, :unique => false
end