diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-20 12:31:23 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-20 12:31:23 -0500 |
commit | a1ce52effccae4851593f1d9b83ca9bf826bf338 (patch) | |
tree | 02c3d318e330c13ad3e3f236fe4d70967887cf38 /actionpack/lib/action_dispatch/routing/route_set.rb | |
parent | df68cae0c0837fbf23fdfc3f04162307ffa8f2c1 (diff) | |
download | rails-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.rb | 4 |
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 |