Class: ActiveRecord::MassInsert::Inserter
- Extended by:
- Forwardable
- Defined in:
- lib/activerecord/mass_insert/inserter.rb
Overview
Handles the building of the mass insert statement
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Statement
Constructor Details
This class inherits a constructor from ActiveRecord::MassInsert::Statement
Class Method Details
.insert(*args) ⇒ Object
11 12 13 |
# File 'lib/activerecord/mass_insert/inserter.rb', line 11 def self.insert(*args) new(*args).insert end |
Instance Method Details
#insert ⇒ Object
15 16 17 |
# File 'lib/activerecord/mass_insert/inserter.rb', line 15 def insert connection.execute(sql) end |