Skip to content

Commit

Permalink
use get instead of accessing the named routes internals
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 31, 2014
1 parent c8317cd commit e9bbe4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/routing/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e9bbe4a

Please sign in to comment.