mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixes a regression caused by having mapping options controller and action as blank
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
3d7e411953
commit
d030f830cf
@@ -152,7 +152,10 @@ module ActionDispatch
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user