Skip to content

Commit 567aa54

Browse files
committed
options should always be passed to url_for
1 parent 5953266 commit 567aa54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/lib/action_dispatch/routing/route_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,9 @@ def _generate_prefix(options = {})
645645
nil
646646
end
647647

648-
# The +options+ argument must be +nil+ or a hash whose keys are *symbols*.
648+
# The +options+ argument must be a hash whose keys are *symbols*.
649649
def url_for(options)
650-
options = default_url_options.merge(options || {})
650+
options = default_url_options.merge options
651651

652652
user = password = nil
653653

0 commit comments

Comments
 (0)