 
   initialize: (model) ->
     return if @is_initialized; @is_initialized = true
-    @model_type._schema.initialize()
+    @schema.initialize()
 
   ###################################
   # Backbone ORM - Class Extensions


    return module.exports.apply(null, Array::slice.call(arguments, 1)) if method is 'createSync' # create a new sync
    return sync if method is 'sync'

    ###################################
    # Classic Backbone Sync

        return callback(new Error "Ajax failed with status #{res.status} for #{'destroy'} with: #{util.inspect(res.body)}") unless res.ok
        callback(null, res.body)


module.exports = (model_type, cache) ->
  sync = new AjaxSync(model_type)
