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:
parent
81d7227c9b
commit
0c34e3f41a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue