class method
self.new
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v7.0.10Signature
self.new(connection, logger, connection_options, config)
FIXME: Make the first parameter more similar for the two adapters
Parameters
-
connectionreq -
loggerreq -
connection_optionsreq -
configreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 133
def initialize(connection, logger, connection_options, config)
super(connection, logger)
@connection_options, @config = connection_options, config
@quoted_column_names, @quoted_table_names = {}, {}
if config.fetch(:prepared_statements) { true }
@visitor = Arel::Visitors::MySQL.new self
else
@visitor = BindSubstitution.new self
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 133
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter