Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 33658ea1ae4170f4b0b5123e240d79bb292719e7 1 parent 3d91d7f
@josh josh authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.