Skip to content
Browse files

use `get` instead of accessing the named routes internals

  • Loading branch information...
1 parent c8317cd commit e9bbe4a106afc9dd42464007f9fba3b54772bae0 @tenderlove tenderlove committed Jul 31, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
View
2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -614,7 +614,7 @@ def rails_app?(app)
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 {

0 comments on commit e9bbe4a

Please sign in to comment.
Something went wrong with that request. Please try again.