import Ember from 'ember'; export default Ember.Controller.extend({ notifications: Ember.inject.service(), acceptEncoding: 'image/*', actions: { confirmAccept: function () { var notifications = this.get('notifications'); this.get('model').save().then(function (model) { return model; }).catch(function (err) { notifications.showAPIError(err); }); }, confirmReject: function () { return false; } } });