         self = this
         Restangular.one('tiers', self.id).customPUT(self.params())
           .then(
-            ()-> alert("shit worked!"),
-            ()-> alert("shit broke!")
+            ()-> #success
+            ()-> #failure
           )
           self.resetChanges()
 

  $scope.addMetrics = (existingMetrics)->
    alert(existingMetrics.length)
    angular.forEach(existingMetrics, (em, index)->
      alert em.id
      emProto = new(MetricPrototype(em))
      # $scope.metrics.push emProto
    )

  $scope.newMetric = ()->

      this.hasChanges = false
    resourceUrl: ()->
      "/metrics/#{self.id}"
    order: ()->
      jQuery.inArray(this, $scope.metrics)
    params: ()->
      self = this
      {
        name: self.name,
        max_points: self.max_points,
        order: self.order(),
        description: self.description,
        rubric_id: self.rubricId
      }
    index: ()->
      this.order()
    destroy: ()->
