From ee1d508a6bbdbfafb20516ebb4b452f1596f9ebe Mon Sep 17 00:00:00 2001 From: Cheah Chu Yeow Date: Sun, 4 May 2008 23:54:08 +0800 Subject: 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. --- actionpack/test/controller/base_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/base_test.rb b/actionpack/test/controller/base_test.rb index 8416754c1e..ea63eda306 100644 --- a/actionpack/test/controller/base_test.rb +++ b/actionpack/test/controller/base_test.rb @@ -52,7 +52,7 @@ class DefaultUrlOptionsController < ActionController::Base def default_url_options_action end - def default_url_options(options) + def default_url_options(options = nil) { :host => 'www.override.com', :action => 'new', :bacon => 'chunky' } end end -- cgit v1.2.3