aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-08 15:50:44 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-08 15:50:44 -0600
commit33658ea1ae4170f4b0b5123e240d79bb292719e7 (patch)
tree33f9f5aed4a5fd7950803c3473af6a33f3f1c913 /actionpack/lib/action_dispatch/routing/mapper.rb
parent3d91d7f0a2bd4b1e104dd8847a2fe9f206c916ca (diff)
downloadrails-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/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
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