Dynamically adding attributes to an Ember Data Model

Often times, you want to add some attributes to an Ember Data model dynamically (e.g. you might want a translateable attribute for each available locale). Lets say, you have a name attribute that you want to translate in English, Spanish, French and Chinese. Here's how you would usually write…

Serializing/Deserializing dates to/from ISO 8601 format with Ember data

Ember Data is a persistence layer for Ember.Js. Without any configuration, Ember Data can load and save records and their relationships served via a RESTful JSON API, provided it follows certain conventions. By default, Date in Ember Data is serialised to a UNIX timestamp. This is great for some…