1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ignore name_prefix unless there is an explicit name

This commit is contained in:
Joshua Peek 2009-12-07 20:11:57 -06:00
parent 81d7227c9b
commit 0c34e3f41a

View file

@ -235,7 +235,7 @@ module ActionDispatch
options = (@scope[:options] || {}).merge(options)
if @scope[:name_prefix]
if @scope[:name_prefix] && options[:as]
options[:as] = "#{@scope[:name_prefix]}#{options[:as]}"
end