diff options
author | Luke Redpath <contact@lukeredpath.co.uk> | 2008-06-05 13:20:54 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-17 20:53:41 +0100 |
commit | 7650ff892cbffcaaaf9c5ab72466e98903a202d3 (patch) | |
tree | bc0a124be51c0fe7711e479aecfa24cf3e8c947c /actionpack/lib | |
parent | bc4a2f156b368334ca7267d15f4dd10864ac492d (diff) | |
download | rails-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')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 4 |
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 |