aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2010-09-26 14:04:51 +0200
committerthedarkone <thedarkone2@gmail.com>2010-09-27 17:45:59 +0200
commit7d9f605f8072ef473e2c30800b91493b56af5b2b (patch)
treec48c7d4702432529b258475937e3fab9346e3927 /actionpack/lib/action_view/helpers/url_helper.rb
parent5b81d1f3ef1f1b06495eadcc1c2d110d76ac1de3 (diff)
downloadrails-7d9f605f8072ef473e2c30800b91493b56af5b2b.tar.gz
rails-7d9f605f8072ef473e2c30800b91493b56af5b2b.tar.bz2
rails-7d9f605f8072ef473e2c30800b91493b56af5b2b.zip
Clean up url_for.
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb4
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