Method: ActiveRecord::InsertAll.execute

Defined in:
activerecord/lib/active_record/insert_all.rb

.execute(relation) ⇒ Object



11
12
13
14
15
# File 'activerecord/lib/active_record/insert_all.rb', line 11

def execute(relation, ...)
  relation.model.with_connection do |c|
    new(relation, c, ...).execute
  end
end