Sha256: a4cdd3689d0dc342c8a66ea7cd2dc34997530558422bafde23460edcc4817849
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
module MailEngine # Load configure file from config/mail_engine_config.yml # you can access the config by MailEngine::Base.current_config[] class Configuration class << self def load require 'erb' config_path = File.join(Rails.root, "config", "mail_engine_config.yml") MailEngine::Base.configurations = YAML::load(ERB.new(IO.read(config_path)).result) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail_engine-0.1.0 | lib/mail_engine/configuration.rb |