class method
self.new
Ruby on Rails 4.2.9
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 168
def initialize(connection, logger, connection_options, config)
super(connection, logger)
@connection_options, @config = connection_options, config
@quoted_column_names, @quoted_table_names = {}, {}
@visitor = Arel::Visitors::MySQL.new self
if self.class.type_cast_config_to_boolean(config.fetch(:prepared_statements) { true })
@prepared_statements = true
else
@prepared_statements = false
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 168
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter