nl_tokens: @private
pl_tokens: function serialize ( handler , model , names ) { var object = { } ; if ( isParam ( <mask> ) ) { object [ names [ 0 ] ] = model ; return object ; } // Use custom serialize if it exists. if ( handler . serialize ) { return handler . serialize ( model , names ) ; } if ( names . length !== 1 ) { return ; } var name = names [ 0 ] ; if ( / _id$ / . test ( name ) ) { object [ name ] = model . id ; } else { object [ name ] = model ; } return object ; }