   records = JSON.parse(resp.scoped_records)
      records_with_seeds = records.concat(_this.seeds)
      _this.records = _.sortBy(records_with_seeds, <span class="hljs-string">'id'</span>)

      <span class="hljs-keyword">if</span> resp.id
        _this.promise _this.take(resp.id)
      <span class="hljs-keyword">else</span>
        _this.promise resp.success

  <span class="hljs-attribute">url</span>: <span class="hljs-function"><span class="hljs-params">(action)</span> -&gt;</span>
    <span class="hljs