Browse files

Don't use name prefix by itself unless as is an empty string

  • Loading branch information...
1 parent 3d91d7f commit 33658ea1ae4170f4b0b5123e240d79bb292719e7 @josh josh committed Dec 8, 2009
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
@@ -228,7 +228,7 @@ def match(*args)
if @scope[:name_prefix] && !options[:as].blank?
options[:as] = "#{@scope[:name_prefix]}_#{options[:as]}"
- elsif @scope[:name_prefix] && options[:as].blank?
+ elsif @scope[:name_prefix] && options[:as] == ""
options[:as] = @scope[:name_prefix].to_s
end

0 comments on commit 33658ea

Please sign in to comment.