提交 9742785d 编写于 作者: A Aaron Patterson

alias visitor_for to for

上级 eef61ab9
......@@ -22,7 +22,7 @@ def and right
#
# Maybe we should just use `Table.engine`? :'(
def to_sql engine = Table.engine
viz = Visitors::ToSql.new engine
viz = Visitors.for engine
viz.accept self
end
end
......
......@@ -24,5 +24,6 @@ module Visitors
def self.visitor_for engine
ENGINE_VISITORS[engine]
end
class << self; alias :for :visitor_for; end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册