Skip to content

Instantly share code, notes, and snippets.

View mccataldo's full-sized avatar

mike cataldo mccataldo

View GitHub Profile
@mccataldo
mccataldo / controllers.application.js
Last active September 27, 2017 23:35 — forked from bfitch/controllers.application.js
Rollback Changeset hasMany
import Ember from 'ember';
import Changeset from 'ember-changeset';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.get('store').createRecord('foo', {
users: [
this.get('store').createRecord('user', {name: 'bob'}),