aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-04-05 14:28:03 -0700
committerXavier Noria <fxn@hashref.com>2012-04-05 14:28:03 -0700
commit8927987506b25269e021024140b256c20cafa978 (patch)
treebff7bbfb9143d3561098069e7cc580537440649f
parente535faaee7bf0c01102ef29d2d396063604ab9d9 (diff)
downloadrails-8927987506b25269e021024140b256c20cafa978.tar.gz
rails-8927987506b25269e021024140b256c20cafa978.tar.bz2
rails-8927987506b25269e021024140b256c20cafa978.zip
documents the contract for the argument of AD::Routing::RouteSet#url_for
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 99abf4c1cf..45075050eb 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -605,6 +605,7 @@ module ActionDispatch
nil
end
+ # The +options+ argument must be +nil+ or a hash whose keys are *symbols*.
def url_for(options)
options = default_url_options.merge(options || {})