staugaard/ember-resource — Issue #34: Schema cannot be reopened
Author: jamesarosen
Created: 2012-02-28 19:25:59+00:00
State: open

When sharing code across multiple projects, it makes sense to put core classes in a shared library. Individual projects would then reopen the core classes to add functionality specific to their use-cases. For example:

```javascript
User = Ember.Resource.define({
organization: { type: 'Zendesk.Organization', nested: true }
});
```

```javascript
User.reopenSchema({
posts: {
type: Ember.ResourceCollection,
itemType: 'BlogPost',
url: '/users/%@/posts'
},
});
```