提交 72c290ca 编写于 作者: A Aaron Patterson

avoid extra method calls by just defining the delegate

上级 5ac0273c
......@@ -315,9 +315,10 @@ def url_helpers
include UrlFor
@_routes = routes
class << self
delegate :url_for, :to => '@_routes'
def self.url_for(options)
@_routes.url_for options
end
extend routes.named_routes.module
# ROUTES TODO: install_helpers isn't great... can we make a module with the stuff that
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册