diff options
author | thedarkone <thedarkone2@gmail.com> | 2010-09-26 14:04:51 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2010-09-27 17:45:59 +0200 |
commit | 7d9f605f8072ef473e2c30800b91493b56af5b2b (patch) | |
tree | c48c7d4702432529b258475937e3fab9346e3927 | |
parent | 5b81d1f3ef1f1b06495eadcc1c2d110d76ac1de3 (diff) | |
download | rails-7d9f605f8072ef473e2c30800b91493b56af5b2b.tar.gz rails-7d9f605f8072ef473e2c30800b91493b56af5b2b.tar.bz2 rails-7d9f605f8072ef473e2c30800b91493b56af5b2b.zip |
Clean up url_for.
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index f8147840ed..8d1def05de 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -95,7 +95,7 @@ module ActionView # # => javascript:history.back() def url_for(options = {}) options ||= {} - url = case options + case options when String options when Hash @@ -106,8 +106,6 @@ module ActionView else polymorphic_path(options) end - - url end # Creates a link tag of the given +name+ using a URL created by the set |