Sha256: 24908ae7dac7b4d1ae4e6c47ee9191e321572824cd9677b8896fca5e16b537bd
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
export default Ember.Route.extend({ model: function(params) { return this.store.find('<%= file_name.singularize -%>', params.<%= file_name.singularize -%>_id); }, actions: { destroyRecord: function(model) { var _this = this; model.destroyRecord().then(function() { _this.transitionTo('<%= file_name.pluralize -%>.index'); }); } } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-appkit-rails-0.4.0 | lib/generators/templates/scaffold/route/show.js.es6 |