diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-31 15:26:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-31 15:26:53 -0700 |
commit | e9bbe4a106afc9dd42464007f9fba3b54772bae0 (patch) | |
tree | 91e2ff704ac56166fd1072d762bd1d9d585406b4 /actionpack | |
parent | c8317cd1d42c21fe33d38074841a9ffa28c7ed9b (diff) | |
download | rails-e9bbe4a106afc9dd42464007f9fba3b54772bae0.tar.gz rails-e9bbe4a106afc9dd42464007f9fba3b54772bae0.tar.bz2 rails-e9bbe4a106afc9dd42464007f9fba3b54772bae0.zip |
use `get` instead of accessing the named routes internals
Diffstat (limited to 'actionpack')
-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 5982dc862c..37be34abf8 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -614,7 +614,7 @@ module ActionDispatch end def define_generate_prefix(app, name) - _route = @set.named_routes.routes[name.to_sym] + _route = @set.named_routes.get name _routes = @set app.routes.define_mounted_helper(name) app.routes.extend Module.new { |