Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Access resource name in handler when using custom controller names. #23

Closed
vjpr opened this Issue · 1 comment

2 participants

@vjpr

If I do something like this:

api.resources 'collections', (collection) ->
      collection.resources 'links', controller: 'collectionLinks'

I wish to access the name of the resource (that is, "links"/"link") from the collectionLinks resource.

The callback receives the controllerName and there is no way to access the name of the resource.

@olalonde

Was introduced by this commit: d8c3ee3 Maybe @1602 knows...

@1602 1602 closed this in 25e68cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.