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

13 lines
257 B
Ruby

class Location
include Mongoid::Document
include Mongoid::Timestamps
include OrbitCategory::Categorizable
mount_uploader :file, LocationUploader
field :name
field :description
field :longitude, type: Float
field :latitude, type: Float
end