diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-20 15:34:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-20 15:34:18 -0700 |
commit | 867810cdfa920db0bd0414e8ec4a47a3586edc8b (patch) | |
tree | d19fd24012a4a64c61e9b1a4b964d1c6d700a9da /actionpack/lib/action_dispatch/routing | |
parent | 7354ef146eee8a157d8102b615c198b799505f7f (diff) | |
download | rails-867810cdfa920db0bd0414e8ec4a47a3586edc8b.tar.gz rails-867810cdfa920db0bd0414e8ec4a47a3586edc8b.tar.bz2 rails-867810cdfa920db0bd0414e8ec4a47a3586edc8b.zip |
set route precedence at allocation time
This way we can make the Route object a read-only data structure.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index c1134d16ad..51bafb539f 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -150,9 +150,9 @@ module ActionDispatch conditions, required_defaults, defaults, - request_method) + request_method, + precedence) - route.precedence = precedence route end |