<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -998,7 +998,7 @@ module ActionController #:nodoc:
       # As you can infer from the example, this is mostly useful for situations where you want to centralize dynamic decisions about the
       # urls as they stem from the business domain. Please note that any individual url_for call can always override the defaults set
       # by this method.
-      def default_url_options(options) #:doc:
+      def default_url_options(options = nil)
       end
 
       # Redirects the browser to the target specified in +options+. This parameter can take one of three forms:</diff>
      <filename>actionpack/lib/action_controller/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -61,9 +61,9 @@ module ActionController
           # if they're using foo_url(:id=&gt;2) it's one 
           # argument, but we don't want to generate /foos/id2
           if number_of_arguments == 1
-            &quot;(!defined?(default_url_options) || default_url_options(nil).blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == 1 &amp;&amp; !args.first.is_a?(Hash)&quot;
+            &quot;(!defined?(default_url_options) || default_url_options.blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == 1 &amp;&amp; !args.first.is_a?(Hash)&quot;
           else
-            &quot;(!defined?(default_url_options) || default_url_options(nil).blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == #{number_of_arguments}&quot;
+            &quot;(!defined?(default_url_options) || default_url_options.blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == #{number_of_arguments}&quot;
           end
         end
 
@@ -98,7 +98,7 @@ module ActionController
       # argument
       class PositionalArgumentsWithAdditionalParams &lt; PositionalArguments
         def guard_condition
-          &quot;(!defined?(default_url_options) || default_url_options(nil).blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == #{route.segment_keys.size + 1} &amp;&amp; !args.last.has_key?(:anchor) &amp;&amp; !args.last.has_key?(:port) &amp;&amp; !args.last.has_key?(:host)&quot;
+          &quot;(!defined?(default_url_options) || default_url_options.blank?) &amp;&amp; defined?(request) &amp;&amp; request &amp;&amp; args.size == #{route.segment_keys.size + 1} &amp;&amp; !args.last.has_key?(:anchor) &amp;&amp; !args.last.has_key?(:port) &amp;&amp; !args.last.has_key?(:host)&quot;
         end
 
         # This case uses almost the same code as positional arguments, </diff>
      <filename>actionpack/lib/action_controller/routing/optimisations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@ class DefaultUrlOptionsController &lt; ActionController::Base
   def default_url_options_action
   end
 
-  def default_url_options(options)
+  def default_url_options(options = nil)
     { :host =&gt; 'www.override.com', :action =&gt; 'new', :bacon =&gt; 'chunky' }
   end
 end</diff>
      <filename>actionpack/test/controller/base_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>04d85548608eb42f2d7071daa4661c5eac3a552a</id>
    </parent>
  </parents>
  <author>
    <name>Cheah Chu Yeow</name>
    <email>chuyeow@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/ee1d508a6bbdbfafb20516ebb4b452f1596f9ebe</url>
  <id>ee1d508a6bbdbfafb20516ebb4b452f1596f9ebe</id>
  <committed-date>2008-05-05T23:41:33-07:00</committed-date>
  <authored-date>2008-05-04T08:54:08-07:00</authored-date>
  <message>Allow ActionController::Base#default_url_options to have a default options argument of nil.

This fixes a bug introduced in [6a6b4392c16c665eb713705f2b38e959a658eeef] which was breaking routing in ActionController::UrlWriter.</message>
  <tree>4bc2991c6819f50de9b44201033751baf9e27434</tree>
  <committer>
    <name>rick</name>
    <email>rick@spacemonkey.local</email>
  </committer>
</commit>
