import Ember from 'ember';

export default Ember.Route.extend({
  model: function(params) {
    return this.fridge.fetch('integration', params.integration_id);
  },

  actions: {
    saveIntegration: function(model) {
      this.fridge.save("integration", model).then(() => {
        this.transitionTo("integrations");
      });
    }
  }
});
