Orbit/vendor/built_in_modules/gprs/app/models/location.rb

12 lines
214 B
Ruby
Raw Normal View History

2012-09-17 13:36:40 +00:00
class Location
include Mongoid::Document
include Mongoid::Timestamps
2012-09-17 13:36:40 +00:00
mount_uploader :file, GprsUploader
2012-09-17 13:36:40 +00:00
field :name
field :description
field :longitude, type: Float
field :latitude, type: Float
end