Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created March 7, 2014 11:16
Show Gist options
  • Save rlivsey/9409742 to your computer and use it in GitHub Desktop.
Save rlivsey/9409742 to your computer and use it in GitHub Desktop.
hash transform
Thing = FP.Model.extend({
things: FP.attr("hash")
})
thing = store.createRecord("thing", {
things: {
foo: 1,
bar: 2,
baz: 3
}
});
thing.get("things")
=> {foo: 1, bar: 2, baz: 3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment