Skip to content

Commit

Permalink
documents the contract for the argument of AD::Routing::RouteSet#url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Apr 5, 2012
1 parent e535faa commit 8927987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/action_dispatch/routing/route_set.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ def _generate_prefix(options = {})
nil nil
end end


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


Expand Down

0 comments on commit 8927987

Please sign in to comment.