public/javascripts/vendor/javascripts/ember.js
function(manager, context) {
    var modelClass, routeMatcher, namespace, param, id;

    if (Ember.empty(context)) { return ''; }

    if (modelClass = this.modelClassFor(get(manager, 'namespace'))) {
      param = paramForClass(modelClass);
      id = get(context, 'id');
      context = {};
      context[param] = id;
    }

    return context;
  }
function(manager, context) {
    var modelClass, routeMatcher, namespace, param, id;

    if (Ember.empty(context)) { return ''; }

    if (modelClass = this.modelClassFor(get(manager, 'namespace'))) {
      param = paramForClass(modelClass);
      id = get(context, 'id');
      context = {};
      context[param] = id;
    }

    return context;
  }
function ( manager , context ) { var modelClass , routeMatcher , namespace , param , id ; if ( Ember . empty ( context ) ) { return '' ; } if ( modelClass = this . modelClassFor ( get ( manager , 'namespace' ) ) ) { param = paramForClass ( modelClass ) ; id = get ( context , 'id' ) ; context = { } ; context [ param ] = id ; } return context ; }
The default method that takes an object and converts it into
a params hash.

By default, if there is a single dynamic segment named
`blog_post_id` and the object is a `BlogPost` with an
`id` of `12`, the serialize method will produce:

{ blog_post_id: 12 }
The default method that takes an object and converts it into a params hash .