@@ -2,8 +2,6 @@ var get = Ember.get;
22var forEach = Ember . EnumerableUtils . forEach ;
33var camelize = Ember . String . camelize ;
44
5- import { pluralize } from "ember-inflector" ;
6-
75/**
86 ## Using Embedded Records
97
@@ -181,7 +179,6 @@ var EmbeddedRecordsMixin = Ember.Mixin.create({
181179 */
182180 serializeBelongsTo : function ( record , json , relationship ) {
183181 var attr = relationship . key ;
184- var attrs = this . get ( 'attrs' ) ;
185182 if ( this . noSerializeOptionSpecified ( attr ) ) {
186183 this . _super ( record , json , relationship ) ;
187184 return ;
@@ -291,7 +288,6 @@ var EmbeddedRecordsMixin = Ember.Mixin.create({
291288 */
292289 serializeHasMany : function ( record , json , relationship ) {
293290 var attr = relationship . key ;
294- var attrs = this . get ( 'attrs' ) ;
295291 if ( this . noSerializeOptionSpecified ( attr ) ) {
296292 this . _super ( record , json , relationship ) ;
297293 return ;
@@ -366,8 +362,6 @@ var EmbeddedRecordsMixin = Ember.Mixin.create({
366362 // checks config for attrs option to serialize records
367363 noSerializeOptionSpecified : function ( attr ) {
368364 var option = this . attrsOption ( attr ) ;
369- var serializeRecords = this . hasSerializeRecordsOption ( attr ) ;
370- var serializeIds = this . hasSerializeIdsOption ( attr ) ;
371365 return ! ( option && ( option . serialize || option . embedded ) ) ;
372366 } ,
373367
0 commit comments