 
   # returns a function intended to be bound to a resource instance
   register_action: (name) ->
-    (data) ->
-      request = @_prepare_request(name, data)
+    (options) ->
+      request = @_prepare_request(name, options)
       @patchboard_client.shred.request(request)
 
   resource_methods:

        # and relay into the user-supplied error handler.
        throw new Error("No such action defined: #{name}")

    authorize: (type, action) ->
      @patchboard_client.authorizer.call(@, type, action)


      request =
        url: resource.url
        method: method
        headers:
          "User-Agent": "patchboard_client"
        query: options.query
        cookieJar: null
        on: {}
