nl_tokens: This method takes a list of records groups the records by type converts the records into IDs and then invokes the adapter s findMany method .
pl_tokens: function ( records , owner , resolver ) { if ( ! records . length ) { return ; } // Group By Type var recordsByTypeMap = Ember . MapWithDefault . <mask> ( { defaultValue : function ( ) { return Ember . A ( ) ; } } ) ; forEach ( records , function ( record ) { recordsByTypeMap . get ( record . constructor ) . push ( record ) ; } ) ; forEach ( recordsByTypeMap , function ( type , records ) { var ids = records . mapProperty ( 'id' ) , adapter = this . adapterFor ( type ) ; Ember . assert ( "You tried to load many records but you have no adapter (for " + type + ")" , adapter ) ; Ember . assert ( "You tried to load many records but your adapter does not implement `findMany`" , adapter . findMany ) ; resolver . resolve ( _findMany ( adapter , this , type , ids , owner ) ) ; } , this ) ; }