aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-01-15 13:38:10 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2013-01-15 17:21:33 +0000
commit90d2802b71a6e89aedfe40564a37bd35f777e541 (patch)
treef0d52164eeb95337282aa5140eda1188092ee0ca /actionpack/test/journey
parentb28fc685a98e6ff1a3777116b97b5c1c41e01391 (diff)
downloadrails-90d2802b71a6e89aedfe40564a37bd35f777e541.tar.gz
rails-90d2802b71a6e89aedfe40564a37bd35f777e541.tar.bz2
rails-90d2802b71a6e89aedfe40564a37bd35f777e541.zip
Add support for other types of routing constraints
This now allows the use of arrays like this: get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] } or constraints where the request method returns an Fixnum like this: get '/foo', to: 'foo#index', constraints: { port: 8080 } Note that this only applies to constraints on the request - path constraints still need to be specified as Regexps as the various constraints are compiled into a single Regexp.
Diffstat (limited to 'actionpack/test/journey')
0 files changed, 0 insertions, 0 deletions