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

Configure copying of attributes and/or relationships #16

Open AndersDJohnson opened 9 years ago

AndersDJohnson commented 9 years ago

This allows user to specify whether to skip copying attributes, skip copying relationships, and/or to copy only some kinds of relationships (e.g. only belongsTo or hasMany). This will "allow user to force shallow copying on copyable models" per the "coming up" section of the README, by using .copy(null, {relationships: false}).