Use factory superclass in Route#model hook
Merge pull request #3233 from teddyzeenny/model-lookup

Use factory superclass in Route#model hook

This is a temporary fix and needs a more robust solution.