aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorLuke Redpath <contact@lukeredpath.co.uk>2008-06-05 13:20:54 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-06-17 20:53:41 +0100
commit7650ff892cbffcaaaf9c5ab72466e98903a202d3 (patch)
treebc0a124be51c0fe7711e479aecfa24cf3e8c947c /actionpack/lib/action_controller/base.rb
parentbc4a2f156b368334ca7267d15f4dd10864ac492d (diff)
downloadrails-7650ff892cbffcaaaf9c5ab72466e98903a202d3.tar.gz
rails-7650ff892cbffcaaaf9c5ab72466e98903a202d3.tar.bz2
rails-7650ff892cbffcaaaf9c5ab72466e98903a202d3.zip
Fix url_for with no arguments when default_url_options is not explicitly defined. [#339 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb4
1 files changed, 2 insertions, 2 deletions
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, <tt>url_for :action => 'print'</tt>
# 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