Permalink
Browse files

Ignore name_prefix unless there is an explicit name

  • Loading branch information...
1 parent 81d7227 commit 0c34e3f41ae79bb675c74b697ef92bad59b25f7f @josh josh committed Dec 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -235,7 +235,7 @@ def match(*args)
options = (@scope[:options] || {}).merge(options)
- if @scope[:name_prefix]
+ if @scope[:name_prefix] && options[:as]
options[:as] = "#{@scope[:name_prefix]}#{options[:as]}"
end

0 comments on commit 0c34e3f

Please sign in to comment.