Skip to content

Instantly share code, notes, and snippets.

Avatar
🌮

Jason Evans jasonmevans

🌮
  • San Francisco, CA
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jasonmevans on github.
  • I am jasonmevans (https://keybase.io/jasonmevans) on keybase.
  • I have a public key ASAdP2bJv8L82ll1I_2AFTbzcBbvljEZjYOCZS2NF2l88go

To claim this, I am signing this object:

View components.test-input.js
import Ember from 'ember';
export default Ember.Component.extend({
testValue: '',
actions: {
handleKey(v) {
this.set('testValue', v);
},
keyUp(e) {
View keybase.md

Keybase proof

I hereby claim:

  • I am jasonmevans on github.
  • I am neighborjason (https://keybase.io/neighborjason) on keybase.
  • I have a public key ASCpNh1dWy8DuUYcMXO32-m1mHYzh8N4XsbbVQkXr-Owmgo

To claim this, I am signing this object:

View adapters.application.js
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend({
updateRecord: function (store, type, snapshot) {
var data = {};
var serializer = store.serializerFor(type.modelName);
serializer.serializeIntoHash(data, type, snapshot, { includeId: true });
var id = snapshot.id;