aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-04 12:21:16 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-04 12:21:16 -0700
commit733115dad2fb36a78170778c8664048e9ef7f876 (patch)
tree59ae37e243fd9422ae82e10cb4916b1f7952068a /actionpack
parent4b2cb4ac9df5b0c7b98d5d450277b47b8accba9e (diff)
parente4fd22639fa13961ee73cf922a0ab7c1e96e4599 (diff)
downloadrails-733115dad2fb36a78170778c8664048e9ef7f876.tar.gz
rails-733115dad2fb36a78170778c8664048e9ef7f876.tar.bz2
rails-733115dad2fb36a78170778c8664048e9ef7f876.zip
Merge pull request #10838 from gsamokovarov/routing-autoload_under
DRY-up ActionDispatch::Routing autoloads
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb
index 550c7d0e7b..a9ac2bce1d 100644
--- a/actionpack/lib/action_dispatch/routing.rb
+++ b/actionpack/lib/action_dispatch/routing.rb
@@ -246,11 +246,13 @@ module ActionDispatch
# Target specific controllers by prefixing the command with <tt>CONTROLLER=x</tt>.
#
module Routing
- autoload :Mapper, 'action_dispatch/routing/mapper'
- autoload :RouteSet, 'action_dispatch/routing/route_set'
- autoload :RoutesProxy, 'action_dispatch/routing/routes_proxy'
- autoload :UrlFor, 'action_dispatch/routing/url_for'
- autoload :PolymorphicRoutes, 'action_dispatch/routing/polymorphic_routes'
+ extend ActiveSupport::Autoload
+
+ autoload :Mapper
+ autoload :RouteSet
+ autoload :RoutesProxy
+ autoload :UrlFor
+ autoload :PolymorphicRoutes
SEPARATORS = %w( / . ? ) #:nodoc:
HTTP_METHODS = [:get, :head, :post, :patch, :put, :delete, :options] #:nodoc: