Skip to content

Instantly share code, notes, and snippets.

View danielspaniel's full-sized avatar

Daniel Sudol danielspaniel

View GitHub Profile
@danielspaniel
danielspaniel / controllers.application.js
Last active October 29, 2018 20:59
FactoryGuy Development Scenarios
import Ember from 'ember';
export default Ember.Controller.extend();
@danielspaniel
danielspaniel / controllers.application.js
Last active February 22, 2018 01:09
FactoryGuy build/mockFindRecord
import Ember from 'ember';
export default Ember.Controller.extend({
});
@danielspaniel
danielspaniel / controllers.application.js
Last active February 21, 2018 00:56
FactoryGuy make/mockFindRecord
import Ember from 'ember';
export default Ember.Controller.extend({
});
@danielspaniel
danielspaniel / controllers.application.js
Created February 13, 2018 13:13
factory-guy-model-test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@danielspaniel
danielspaniel / controllers.application.js
Last active October 30, 2017 21:22
Push Polymorphic
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@danielspaniel
danielspaniel / adapters.application.js
Last active March 18, 2017 02:45
polymorphic belongTo
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
});
@danielspaniel
danielspaniel / adapters.application.js
Last active December 10, 2018 21:13
hasMany can update if you push values
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
@danielspaniel
danielspaniel / adapters.application.js
Created February 15, 2017 23:16
REST version of push clears hasMany
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
});
@danielspaniel
danielspaniel / adapters.application.js
Last active February 16, 2017 12:01
hasMany not cleared by pushPayload
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});