vita_app/app/models/map_content.rb
Nicolas Bally 1d3af87d4c initial
2016-04-28 10:07:08 +02:00

17 lines
339 B
Ruby
Executable File

# -*- encoding : utf-8 -*-
class MapContent < ActiveRecord::Base
has_one :portlet, :as => :content, :dependent => :destroy
validates :address, :presence => true
VIEWS = [["Plan",1], ["Mixte",2], ["Satelite",3]]
ZOOMS = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]
def self.picto
"map-marker"
end
end