lazybensch / ember-cli-copyable

Deeply copies your records including their relations. The mixin is smart enough to resolve not loaded relations and is configurable to what should be shallow/deeply copied or excluded entirely.
MIT License
25 stars 17 forks source link

Expose copyTo method & add unit test. #14

Open AndersDJohnson opened 9 years ago

AndersDJohnson commented 9 years ago

Might as well support copying to existing instance, since all the logic is already there.

Useful e.g. after copying a model for buffered form editing to copy updates back to the original model.