1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Clean up url_for.

This commit is contained in:
thedarkone 2010-09-26 14:04:51 +02:00
parent 5b81d1f3ef
commit 7d9f605f80

View file

@ -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