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

Closed
vjpr opened this Issue Jun 9, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@vjpr

vjpr commented Jun 9, 2013

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

This comment has been minimized.

Show comment
Hide comment
@olalonde

olalonde Jun 9, 2013

Contributor

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

Contributor

olalonde commented Jun 9, 2013

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

@1602 1602 closed this in 25e68cd Jul 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment