Skip to content

Instantly share code, notes, and snippets.

@thomasqbrady
thomasqbrady / gist:7684611
Created November 27, 2013 23:03
Trying to understand how to introspect hasMany related models in Ember/Ember Data
var doc = DS.Model.extend({
// relationships
metadata: DS.hasMany('metadatum',{ async: true }),
...................
var Metadatum = DS.Model.extend({
// relationships
doc: DS.belongsTo('doc'),
This was HUGELY helpful.
Seeing something odd. Walking down that line,
msg = inbox.get_item items[0].item_id
Works fine. I can see some attributes, such as:
msg.item_id
@thomasqbrady
thomasqbrady / dabblet.css
Created January 3, 2012 20:46 — forked from anonymous/dabblet.css
night to day in 4s
/* night to day in 4s */
/* only tested in Firefox 8 so far but should work in other
* browsers as well
*/
body {
background: black;
margin: 100px;
transition: all 4s;