validates_prensence_of :date_closed if :status == "closed"
validates_inclusion_of :status, :in => [ "open", "closed", "hidden" ]
validates_prensence_of :date_closed if :status == "closed"
validates_inclusion_of :status, :in => [ "open", "closed", "hidden" ]