var ItemEditController = Em.ObjectController.extend({
  complete: function (key, value) {
    if (arguments.length > 1) {
      return value;
    }

    return this.get('canonicalModel.complete');
  }.property('canonicalModel.complete'),

  actions: {
    cancel: function () {
      this.get('model').destroy();
      this.transitionToRoute('items');
    },

    save: function () {
      var self = this,
          item = this.get('model');

      this.api.edit('items', item).then(function (data) {
        var id = Ember.get(data, 'id');

        self.store.load('items', data);
        self.send('refresh');

        self.transitionToRoute('item.index', self.store.find('items', id));
      }).catch(function () {
        alert('Sorry, something went wrong saving your edited item! Please try again later.');
      });
    },
  }
});

export default ItemEditController;

@@ -49,17 +49,20 @@
 end(%7B%0A  
-c
+setC
 omplete:
@@ -76,141 +76,122 @@
 on (
-key, value) %7B%0A    if (arguments.length %3E 1) %7B%0A      return value;%0A    %7D%0A%0A    return this.get('canonicalModel.complete');%0A  %7D.property
+) %7B%0A    var complete = this.get('canonicalModel.complete');%0A    this.set('model.complete', complete);%0A  %7D.observes
 ('ca

Fix saving item `complete` field