Sha256: 5884319728c9ca8c70b46f754bfd469103bbfcc9ec527a4d67959412c436f6bd
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
module Vaultify class Engine < ::Rails::Engine isolate_namespace Vaultify class << self def config file = File.open(File.join(::Rails.root, "/config/vaultify.yml")) @config ||= YAML.safe_load(file) end # loads a yml file with the configuration options # # @param file [String] path to the yml file # def load_config(file) @config = YAML.load_file(file) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vaultify-0.1.4 | lib/vaultify/engine.rb |
vaultify-0.1.3 | lib/vaultify/engine.rb |
vaultify-0.1.1 | lib/vaultify/engine.rb |
vaultify-0.1.0 | lib/vaultify/engine.rb |