 class Collection extends Base
   constructor: (@model) -> 
     super
-    @url = getURL(@model)
+    @url = Ajax.getURL(@model)
     
   findAll: (params) ->
     @send params,

  constructor: (@record) ->
    super
    @model = @record.constructor
    @url   = getURL(@record)
  
  find: (params) ->
    @send params

$     = Spine.$
Model = Spine.Model

Ajax =
  enabled:  true
  pending:  false
  requests: []
  getURL: (object) ->
    object and object.url?() or object.url

  disable: (callback) ->
    @enabled = false
