Module: ColdStorage::Archived
- Defined in:
- lib/cold_storage/archive_model.rb
Overview
Namespace holding the generated archive classes, so they have real names in logs and backtraces (ColdStorage::Archived::Invoices).
Classes appear here on demand: an association declared on one archive model names its counterpart, and the constant is built the first time it is touched.
Class Method Summary collapse
Class Method Details
.const_missing(name) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/cold_storage/archive_model.rb', line 13 def self.const_missing(name) source = ArchiveModel.registered_source(name) return super if source.nil? ArchiveModel.for(source) end |