mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Delete not used codes
These codes were introduced by03724fb178
, and to be not used by79411322ae
.
This commit is contained in:
parent
63ea665c80
commit
62e3596db8
1 changed files with 0 additions and 23 deletions
|
@ -14,28 +14,5 @@ require 'arel/visitors/informix'
|
|||
|
||||
module Arel
|
||||
module Visitors
|
||||
VISITORS = {
|
||||
'postgresql' => Arel::Visitors::PostgreSQL,
|
||||
'mysql' => Arel::Visitors::MySQL,
|
||||
'mysql2' => Arel::Visitors::MySQL,
|
||||
'mssql' => Arel::Visitors::MSSQL,
|
||||
'sqlserver' => Arel::Visitors::MSSQL,
|
||||
'oracle_enhanced' => Arel::Visitors::Oracle,
|
||||
'sqlite' => Arel::Visitors::SQLite,
|
||||
'sqlite3' => Arel::Visitors::SQLite,
|
||||
'ibm_db' => Arel::Visitors::IBM_DB,
|
||||
'informix' => Arel::Visitors::Informix,
|
||||
}
|
||||
|
||||
ENGINE_VISITORS = Hash.new do |hash, engine|
|
||||
pool = engine.connection_pool
|
||||
adapter = pool.spec.config[:adapter]
|
||||
hash[engine] = (VISITORS[adapter] || Visitors::ToSql).new(engine)
|
||||
end
|
||||
|
||||
def self.visitor_for engine
|
||||
ENGINE_VISITORS[engine]
|
||||
end
|
||||
class << self; alias :for :visitor_for; end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue