1602/railway-routes — pull request #20 by tomaash (2013-06-06 12:34:58+00:00)
Title: Namespace middleware fix

Before, this didn't work:

map.namespace 'api', {middleware: mw.requireAdmin}, (api) ->
api.resources 'users'
api.resources 'places', (place) ->
place.get 'children', 'places#showChildren'
place.collection (places) ->
places.get 'find', 'places#findByName'

Middleware from this needs to be added to params