       error = new errorClass
       error.request = request
       error.env = env
-    error 
-
+    error
+

  recordJsonNamespace: (record) -> Batman.helpers.singularize(@storageKey(record))
  collectionJsonNamespace: (constructor) -> Batman.helpers.pluralize(@storageKey(constructor.prototype))

  _execWithOptions: (object, key, options, context = object) -> 
    if typeof object[key] is 'function' 
      object[key].call(context, options)
    else 
      object[key]

  _defaultCollectionUrl: (model) -> "#{@storageKey(model.prototype)}"

        if id = @get('id')
          url += '/' + id
        url
    )

  @RecordMixin: Batman.extend({}, @BaseMixin)

