diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-11 00:11:16 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-11 00:11:16 -0600 |
commit | 61e9f2023baead046c7f8ba7c89a7496bf49d1be (patch) | |
tree | 099d55bc454145e0352c45606c372e846ebad9f6 /actionpack/lib/action_dispatch/routing/mapper.rb | |
parent | 588225f8852c4b60bfba38f16d8797a41e175400 (diff) | |
download | rails-61e9f2023baead046c7f8ba7c89a7496bf49d1be.tar.gz rails-61e9f2023baead046c7f8ba7c89a7496bf49d1be.tar.bz2 rails-61e9f2023baead046c7f8ba7c89a7496bf49d1be.zip |
Use rackmounts recognize api and don't piggyback recognize_path on
top of rack call
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 3b185c2576..2fa0aab5df 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -2,7 +2,7 @@ module ActionDispatch module Routing class Mapper class Constraints - def new(app, constraints = []) + def self.new(app, constraints = []) if constraints.any? super(app, constraints) else |