Permalink
Browse files

rejecting blank strings

  • Loading branch information...
1 parent dcdfc84 commit 2b2082eb091bb5f51757dd5a321dd092733a0450 @tenderlove tenderlove committed Nov 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -165,8 +165,8 @@ def default_controller_and_action(to_shorthand=nil)
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

0 comments on commit 2b2082e

Please sign in to comment.