diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-04 19:01:48 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-04 21:40:26 -0800 |
commit | 48672cd1997618f21f50e1204e60dc681e647ddb (patch) | |
tree | 1ca51aee72a7279e802577853b786ecd142cb2bc | |
parent | deb00bcb8cf88eb6420282c9af0af64fb69aeed4 (diff) | |
download | rails-48672cd1997618f21f50e1204e60dc681e647ddb.tar.gz rails-48672cd1997618f21f50e1204e60dc681e647ddb.tar.bz2 rails-48672cd1997618f21f50e1204e60dc681e647ddb.zip |
Have ActionDispatch::Routing::RouteSet.new ready to receive routes as is.
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 9ca1857966..26189329c2 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -224,6 +224,7 @@ module ActionDispatch self.controller_namespaces = Set.new @disable_clear_and_finalize = false + clear! end def draw(options = {}, &block) |