1602/railway-routes — pull request #19 by olalonde (2013-06-04 09:17:08+00:00)
Title: Pass options.parentResources to route handler

This could probably use some refactoring like replacing this.latestResource completely by this.latestResources which keeps a stack of parent resources instead of only the immediate parent resource. This is useful if you want to have that information for your route handler. In my case, I want my route handler to execute some authorization middlewares depending on how a controller is called. If 'orders' is nested under the resource 'users', I want to run a middleware that loads the user information. However, if the resource is not nested, I don't need that middleware, etc. So in other words, the way resources are stacked is kind of important to me and probably will be useful to others too so I hope you can merge :+1: