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
15 16 17 18 |
# File 'lib/cdm_migrator/engine.rb', line 15 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
24 25 26 |
# File 'lib/cdm_migrator/engine.rb', line 24 def load_config(file) @config = YAML.load_file(file) end |