From 7650ff892cbffcaaaf9c5ab72466e98903a202d3 Mon Sep 17 00:00:00 2001 From: Luke Redpath Date: Thu, 5 Jun 2008 13:20:54 +0100 Subject: Fix url_for with no arguments when default_url_options is not explicitly defined. [#339 state:resolved] Signed-off-by: Pratik Naik --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/base.rb') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 44269fc735..de1a2662a6 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -606,8 +606,8 @@ module ActionController #:nodoc: # # This takes the current URL as is and only exchanges the action. In contrast, url_for :action => 'print' # would have slashed-off the path components after the changed action. - def url_for(options = nil) #:doc: - case options || {} + def url_for(options = {}) #:doc: + case options when String options when Hash -- cgit v1.2.3