File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/action_dispatch/routing Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ def url_for(options)
656
656
password = options . delete :password
657
657
end
658
658
659
- recall = options . delete ( :_recall )
659
+ recall = options . delete ( :_recall ) { { } }
660
660
661
661
original_script_name = options . delete ( :original_script_name )
662
662
script_name = find_script_name options
@@ -668,7 +668,7 @@ def url_for(options)
668
668
path_options = options . dup
669
669
RESERVED_OPTIONS . each { |ro | path_options . delete ro }
670
670
671
- path , params = generate ( path_options , recall || { } )
671
+ path , params = generate ( path_options , recall )
672
672
params . merge! ( options [ :params ] || { } )
673
673
674
674
ActionDispatch ::Http ::URL . url_for ( options . merge! ( {
Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ def get(uri_or_host, path = nil)
320
320
end
321
321
322
322
module RoutingTestHelpers
323
- def url_for ( set , options , recall = nil )
324
- set . send ( : url_for, options . merge ( :only_path => true , :_recall => recall ) )
323
+ def url_for ( set , options , recall = { } )
324
+ set . url_for options . merge ( :only_path => true , :_recall => recall )
325
325
end
326
326
end
327
327
You can’t perform that action at this time.
0 commit comments