提交 7d9f605f 编写于 作者: T thedarkone

Clean up url_for.

上级 5b81d1f3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册