diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-15 15:02:18 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-15 15:02:18 -0800 |
commit | 2b2082eb091bb5f51757dd5a321dd092733a0450 (patch) | |
tree | bb44d59dc4533bc1801f319d45a7865805516d5d /actionpack/lib | |
parent | dcdfc84f55ea1a7880a30f63b6517745310d24eb (diff) | |
download | rails-2b2082eb091bb5f51757dd5a321dd092733a0450.tar.gz rails-2b2082eb091bb5f51757dd5a321dd092733a0450.tar.bz2 rails-2b2082eb091bb5f51757dd5a321dd092733a0450.zip |
rejecting blank strings
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index bf3110cc66..53a52b735e 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -165,8 +165,8 @@ module ActionDispatch end hash = {} - hash[:controller] = controller if controller - hash[:action] = action if action + hash[:controller] = controller unless controller.blank? + hash[:action] = action unless action.blank? hash end end |