1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

alias visitor_for to for

This commit is contained in:
Aaron Patterson 2010-10-03 14:26:57 -07:00
parent eef61ab909
commit 9742785d5c
2 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,7 @@ module Arel
#
# 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

View file

@ -24,5 +24,6 @@ module Arel
def self.visitor_for engine
ENGINE_VISITORS[engine]
end
class << self; alias :for :visitor_for; end
end
end