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:
parent
5b81d1f3ef
commit
7d9f605f80
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue