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

Clean up url_for.

上级 5b81d1f3
...@@ -95,7 +95,7 @@ def url_options ...@@ -95,7 +95,7 @@ def url_options
# # => javascript:history.back() # # => javascript:history.back()
def url_for(options = {}) def url_for(options = {})
options ||= {} options ||= {}
url = case options case options
when String when String
options options
when Hash when Hash
...@@ -106,8 +106,6 @@ def url_for(options = {}) ...@@ -106,8 +106,6 @@ def url_for(options = {})
else else
polymorphic_path(options) polymorphic_path(options)
end end
url
end end
# Creates a link tag of the given +name+ using a URL created by the set # 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.
先完成此消息的编辑!
想要评论请 注册