Class: TestResult

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/test_result.rb

Class Method Summary collapse

Class Method Details

.insert_many(attributes) ⇒ Object



10
11
12
13
14
15
# File 'app/models/test_result.rb', line 10

def self.insert_many(attributes)
  return if attributes.none?
  columns = attributes.first.keys
  values = attributes.map(&:values)
  import columns, values
end