Module: DbBackupTool::Mappers
- Defined in:
- lib/db_backup_tool/mappers.rb
Defined Under Namespace
Classes: ActiveRecordMapper
Class Method Summary collapse
Class Method Details
.build(config) ⇒ Object
3 4 5 6 7 |
# File 'lib/db_backup_tool/mappers.rb', line 3 def self.build(config) config = config.dup orm = ( config.has_key?(:orm) ? config.delete(:orm) : :active_record ) self.send :"build_#{orm}", config end |