mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't use name prefix by itself unless as is an empty string
This commit is contained in:
@@ -228,7 +228,7 @@ module ActionDispatch
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user