validates_inclusion_of :status, :in => ["open", "closed", "hidden"]
validate :validate_position
+ scope :visible, -> { where("status != 'hidden'") }
+ scope :invisible, -> { where("status = 'hidden'") }
+
after_initialize :set_defaults
# Sanity check the latitude and longitude and add an error if it's broken