attr (type, options) Attribute
Defined in addon/attr.js:38
DS.attr defines an attribute on a DS.Model. By default, attributes are passed through as-is, however you can specify an optional type to have the value automatically transformed. Ember Data ships with four basic transform types: string, number, boolean and date. You can define your own transforms by subclassing DS.Transform. Note that you cannot use attr to define an attribute of id. DS.attr takes an optional hash as a second parame