Skip to content
Browse files

Adding in a values property to the transform so it's easy to obtain t…

…he list of enumerated values for a transform
  • Loading branch information...
1 parent ff11942 commit a73a2bd15ea88ec08720f8ab6e3c36060add6fe2 @leepfrog leepfrog committed Jan 6, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/ember-data/lib/system/serializer.js
View
3 packages/ember-data/lib/system/serializer.js
@@ -914,7 +914,8 @@ DS.Serializer = Ember.Object.extend({
},
serialize: function(serialized) {
return objects.indexOf(serialized);
- }
+ },
+ values: objects
};
this.registerTransform(type, transform);
},

0 comments on commit a73a2bd

Please sign in to comment.
Something went wrong with that request. Please try again.