flatiron/director — pull request #221 by mattmcmanus (2014-01-27 03:07:07+00:00)
Title: Allow for non-"on" methods when using resources

When trying to use a resource and a non-'on' method (once, before, after), Router would error during initialization because in `insertEx` it was evaluating immediately because it was trying to call `apply()` on the route which was a string.

I didn't quite figure out why it was trying to do that before `init()` was being called so the error may be a result of a larger issue, but the fix included in here caused everything to work nicely for my test cases.

Please let me know if you have any questions