ebryn / ember-model

A lightweight model library for Ember.js
MIT License
524 stars 159 forks source link

Allow model.load to accept container. #395

Closed ahacking closed 10 years ago

ahacking commented 10 years ago

This change adds container support to Ember.Model.load so that when loading models from say an adapter those models whether cached or not, will have their container is set correctly.

This PR also ensures that any cached record NEVER has its container modified or set to undefined if already set and protects against cases where a container is not passed to a create, find, fetch or load method.

PR includes test.

ebryn commented 10 years ago

Thanks!