lib/generators/templates/scaffold/route/edit.js.es6 in ember-appkit-rails-0.3.2 vs lib/generators/templates/scaffold/route/edit.js.es6 in ember-appkit-rails-0.4.0

- old
+ new

@@ -5,18 +5,16 @@ deactivate: function() { var model = this.get('controller.model'); model.rollback(); }, actions: { - save: function() { - var model = this.get('controller.model'); + save: function(model) { var _this = this; model.save().then(function() { _this.transitionTo('<%= file_name.pluralize -%>.show', model); }); }, - cancel: function() { - var model = this.get('controller.model'); + cancel: function(model) { this.transitionTo('<%= file_name.pluralize -%>.show', model); } } });