diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-08 15:50:44 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-08 15:50:44 -0600 |
commit | 33658ea1ae4170f4b0b5123e240d79bb292719e7 (patch) | |
tree | 33f9f5aed4a5fd7950803c3473af6a33f3f1c913 /actionpack | |
parent | 3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca (diff) | |
download | rails-33658ea1ae4170f4b0b5123e240d79bb292719e7.tar.gz rails-33658ea1ae4170f4b0b5123e240d79bb292719e7.tar.bz2 rails-33658ea1ae4170f4b0b5123e240d79bb292719e7.zip |
Don't use name prefix by itself unless as is an empty string
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 513c6a5c5f..e05845a04f 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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 |