1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Andrew White 90d2802b71 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.
2013-01-15 17:21:33 +00:00
..
abstract_controller
action_controller Revert "log at debug level what line caused the redirect_to" 2013-01-15 12:47:25 -02:00
action_dispatch Add support for other types of routing constraints 2013-01-15 17:21:33 +00:00
action_pack
action_view Merge pull request #8938 from colinbm/date_select_value 2013-01-14 12:18:36 -08:00
abstract_controller.rb
action_controller.rb extract PerformanceTest into rails-performance_tests gem 2013-01-10 17:09:06 +01:00
action_dispatch.rb extract PerformanceTest into rails-performance_tests gem 2013-01-10 17:09:06 +01:00
action_pack.rb
action_view.rb