rejecting blank strings

This commit is contained in:
Aaron Patterson 2010-11-15 15:02:18 -08:00
parent dcdfc84f55
commit 2b2082eb09

@ -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