提交 2b2082eb 编写于 作者: A Aaron Patterson

rejecting blank strings

上级 dcdfc84f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册