class CSVStepImporter::Model::Importer
Attributes
dao_values[RW]
Public Instance Methods
create_or_update()
click to toggle source
# File lib/csv_step_importer/model/importer.rb, line 16 def create_or_update model_class.import( columns, dao_values, on_duplicate_key_ignore: on_duplicate_key_ignore, on_duplicate_key_update: on_duplicate_key_update, validate: false, timestamps: false, ) true end
import(values)
click to toggle source
# File lib/csv_step_importer/model/importer.rb, line 29 def import(values) self.values = values save! end