class method self.new

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v7.0.10

Available in: v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

self.new(connection, logger, connection_options, config)

FIXME: Make the first parameter more similar for the two adapters

Parameters

connection req
logger req
connection_options req
config req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close