beagle_app/app/models/map_content.rb
Nicolas Bally 7b6cba2128 initial
2015-01-27 23:13:36 +01:00

17 lines
339 B
Ruby

# -*- 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