Permalink
Browse files

Clean up url_for.

  • Loading branch information...
1 parent 5b81d1f commit 7d9f605f8072ef473e2c30800b91493b56af5b2b @thedarkone thedarkone committed Sep 26, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_view/helpers/url_helper.rb
@@ -95,7 +95,7 @@ def url_options
# # => javascript:history.back()
def url_for(options = {})
options ||= {}
- url = case options
+ case options
when String
options
when Hash
@@ -106,8 +106,6 @@ def url_for(options = {})
else
polymorphic_path(options)
end
-
- url
end
# Creates a link tag of the given +name+ using a URL created by the set

0 comments on commit 7d9f605

Please sign in to comment.