cedric/ssl_routes — pull request #8 by sheerun (2013-09-06 14:58:47+00:00)
Title: Constrained subdomains 

Rails 3.2 uses `Rack::MockRequest` in `recognize_path` method, and mock request alwas is `http` one and on the **root** domain. Because of that the route is not recognized if constrained by subdomain like so:

```
get '/register', ssl: true, constraints: { subdomain: 'login' }
```

What happend is recognize_path throws 404 error.

`recognize_path` is deprecated in 3.2 in favor of journey router. You should use it directly.