Class: Vaultify::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Vaultify::Engine
- Defined in:
- lib/vaultify/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
6 7 8 9 |
# File 'lib/vaultify/engine.rb', line 6 def config file = File.open(File.join(::Rails.root, "/config/vaultify.yml")) @config ||= YAML.safe_load(file) end |
.load_config(file) ⇒ Object
loads a yml file with the configuration options
15 16 17 |
# File 'lib/vaultify/engine.rb', line 15 def load_config(file) @config = YAML.load_file(file) end |