Skip to content

Commit

Permalink
rejecting blank strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 15, 2010
1 parent dcdfc84 commit 2b2082e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b2082e

Please sign in to comment.