Class: CdmMigrator::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- CdmMigrator::Engine
- Defined in:
- lib/cdm_migrator/engine.rb
Class Method Summary collapse
- .config ⇒ Object
-
.load_config(file) ⇒ Object
loads a yml file with the configuration options.
Class Method Details
.config ⇒ Object
9 10 11 12 |
# File 'lib/cdm_migrator/engine.rb', line 9 def config file = File.open(File.join(::Rails.root, "/config/cdm_migrator.yml")) @config ||= YAML.safe_load(file) end |
.load_config(file) ⇒ Object
loads a yml file with the configuration options
17 18 19 |
# File 'lib/cdm_migrator/engine.rb', line 17 def load_config(file) @config = YAML.load_file(file) end |