rails/rails — Issue #4635: Routing and module constraints
Author: tanelsuurhans
Created: 2012-01-24 10:41:48+00:00
State: open

Given a route like this:
```ruby
namespace :foo, :constraints => DomainChecker::Foo do
...
```
Previously what one could do is stuff the module under /lib and load it in an initializer.
Right now it would seem that the initializers are not being ran before the route drawing, thus ending up in an undefined
module error.

I could not find anything about the change of behavior in the changelog, is this change made on purpose? Or a side-effect?