         CommonMethods
     ]
 
+    url: ->
+        this.collection.url()
+
     filter: ->
         this._runFilters()
 

        @errors=[]
        Lanes.Vendor.Ampersand.Collection.apply(this, arguments)

    isLoaded:->
        @isLoaded

    fetch: (options={})->
        @isLoaded = true
        wrapRequest(this,options)
        super(options).then => @

    ensureLoaded: ( callback )->
        if ! @isLoaded && ! this.length

    url: ->
        @model::urlRoot()

    sync: Lanes.Data.Sync

    save: (options)->
        Lanes.Data.Sync('update', this, options)

    dataForSave: (options)->
        unsaved = []
        for model in @models
            unsaved.push( model.unsavedData() ) if model.isDirty()
        unsaved

    _prepareModel: (attrs, options={})->
        options.collection = this;
