rejecting blank strings

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

View File

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