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

    $scope.savedMetricCount += 1

  MetricPrototype = (attrs={})->
#    this.tiers = []
#    # this.addTiers(attrs["tiers"]) if attrs["tiers"] #add tiers if passed on init
#    this.id = if attrs.id then attrs.id else null
#    this.name = if attrs.name then attrs.name else ""
#    this.rubricId = if attrs.rubric_id then attrs.rubric_id else $scope.rubricId
#    this.max_points = if attrs.max_points then attrs.max_points else null
#    this.description = if attrs.description then attrs.description else ""
#    this.hasChanges = false
  MetricPrototype.prototype =
    addTier: (attrs={})->
      self = this
      newTier = new TierPrototype(self, attrs)
      this.tiers.push newTier
    isNew: ()->
      this.id is null
    isSaved: ()->

  $scope.existingMetrics = []

  TierPrototype = (metric, attrs={})->
    this.id = attrs.null or null
    this.metric = metric
    this.metric_id = metric.id
    this.name = attrs.name or ""
    this.points = attrs.points || null
    this.description = attrs.description or ""
    this.resetChanges()
  TierPrototype.prototype =
    isNew: ()->
