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:
parent
eef61ab909
commit
9742785d5c
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -24,5 +24,6 @@ module Arel
|
|||
def self.visitor_for engine
|
||||
ENGINE_VISITORS[engine]
|
||||
end
|
||||
class << self; alias :for :visitor_for; end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue