Sha256: 1c1f4102cc9bd214d3576c6d38468f58f09f92adbe31ec2e077801a2d7c555ea
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
export default Ember.Route.extend({ model: function(params) { return this.store.find('<%= require_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.5.0 | lib/generators/templates/scaffold/route/show.es6 |