validates_numericality_of :latitude, :only_integer => true
validates_numericality_of :longitude, :only_integer => true
validates_presence_of :closed_at if :status == "closed"
validates_numericality_of :latitude, :only_integer => true
validates_numericality_of :longitude, :only_integer => true
validates_presence_of :closed_at if :status == "closed"
validate :validate_position
scope :visible, -> { where("status != 'hidden'") }
validate :validate_position
scope :visible, -> { where("status != 'hidden'") }