aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-20 12:31:23 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-20 12:31:23 -0500
commita1ce52effccae4851593f1d9b83ca9bf826bf338 (patch)
tree02c3d318e330c13ad3e3f236fe4d70967887cf38 /actionpack/lib/action_dispatch/routing/route_set.rb
parentdf68cae0c0837fbf23fdfc3f04162307ffa8f2c1 (diff)
downloadrails-a1ce52effccae4851593f1d9b83ca9bf826bf338.tar.gz
rails-a1ce52effccae4851593f1d9b83ca9bf826bf338.tar.bz2
rails-a1ce52effccae4851593f1d9b83ca9bf826bf338.zip
New routing dsl
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index a6e46b1c78..90d7c208a5 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -208,9 +208,9 @@ module ActionDispatch
clear!
end
- def draw
+ def draw(&block)
clear!
- yield Mapper.new(self)
+ Mapper.new(self).instance_exec(DeprecatedMapper.new(self), &block)
@set.add_route(NotFound)
install_helpers
@set.freeze