提交 d030f830 编写于 作者: S Santiago Pastorino 提交者: José Valim

Fixes a regression caused by having mapping options controller and action as blank

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 3d7e4119
......@@ -152,7 +152,10 @@ def default_controller_and_action(to_shorthand=nil)
raise ArgumentError, "missing :action"
end
{ :controller => controller, :action => action }
{ :controller => controller, :action => action }.tap do |hash|
hash.delete(:controller) if hash[:controller].blank?
hash.delete(:action) if hash[:action].blank?
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册