mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
Use scope instead of constraints to define routes.
It works the same with rails 3 and rails 4.
This commit is contained in:
@@ -12,7 +12,9 @@ class FailureTest < ActiveSupport::TestCase
|
||||
routes = ActionDispatch::Routing::RouteSet.new
|
||||
|
||||
routes.draw do
|
||||
root to: 'foo#bar', constraints: { subdomain: 'sub' }
|
||||
scope subdomain: 'sub' do
|
||||
root to: 'foo#bar'
|
||||
end
|
||||
end
|
||||
|
||||
include routes.url_helpers
|
||||
|
||||
Reference in New Issue
Block a user