File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export default Ember.Mixin.create({
126126 copies [ guid ] = model ;
127127
128128 // Copy all the attributes
129- this . eachAttribute ( ( name , { type, options } ) => {
129+ this . eachAttribute ( ( name , { type, options : attributeOptions } ) => {
130130 if ( ignoreAttributes . includes ( name ) ) {
131131 return ;
132132 } else if ( ! isUndefined ( overwrite [ name ] ) ) {
@@ -141,8 +141,8 @@ export default Ember.Mixin.create({
141141
142142 // Run the transform on the value. This should guarantee that we get
143143 // a new instance.
144- value = transform . serialize ( value , options ) ;
145- value = transform . deserialize ( value , options ) ;
144+ value = transform . serialize ( value , attributeOptions ) ;
145+ value = transform . deserialize ( value , attributeOptions ) ;
146146
147147 attrs [ name ] = value ;
148148 } else {
You can’t perform that action at this time.
0 commit comments