Class: CSVImporter::Config
- Inherits:
-
Object
- Object
- CSVImporter::Config
- Defined in:
- lib/csv_importer/config.rb
Overview
The configuration of a CSVImporter
Instance Method Summary collapse
Instance Method Details
#after_build(block) ⇒ Object
21 22 23 |
# File 'lib/csv_importer/config.rb', line 21 def after_build(block) self.after_build_blocks << block end |
#after_save(block) ⇒ Object
25 26 27 |
# File 'lib/csv_importer/config.rb', line 25 def after_save(block) self.after_save_blocks << block end |
#initialize_copy(orig) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/csv_importer/config.rb', line 13 def initialize_copy(orig) super self.column_definitions = orig.column_definitions.dup self.identifiers = orig.identifiers.dup self.after_save_blocks = orig.after_save_blocks.dup self.after_build_blocks = orig.after_build_blocks.dup end |