Module: ColActiveImporterStarter
- Defined in:
- lib/col_active_importer_starter/lib.rb,
lib/col_active_importer_starter.rb,
lib/col_active_importer_starter/engine.rb,
lib/col_active_importer_starter/version.rb,
app/jobs/col_active_importer_starter/application_job.rb,
app/models/col_active_importer_starter/application_record.rb,
app/helpers/col_active_importer_starter/application_helper.rb,
app/mailers/col_active_importer_starter/application_mailer.rb,
app/controllers/col_active_importer_starter/application_controller.rb
Overview
continuum/active_importer: Define importers that load tabular data from spreadsheets or CSV files into any ActiveRecord-like ORM. github.com/continuum/active_importer
Defined Under Namespace
Modules: ApplicationHelper, ColumnName, ResultColumnName, ResultIndex, ResultValue Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, BaseImporter, Engine
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.handle_model_cache!(cache, key) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/col_active_importer_starter/lib.rb', line 30 def self.handle_model_cache!(cache, key) model = cache[key] return model if model.present? Rails.logger.info("Cache not found: #{key}") model = yield(key) if block_given? cache[key] = model model end |