mail_conf.rb
364 Bytes
class MailConf
class << self
def config_file
File.join(RAILS_ROOT, 'config', 'mail.yml')
end
def config
if File.exists?(config_file)
YAML.load_file(config_file)
else
{}
end
end
def enabled?
config['enabled'] || false
end
def webmail_url
config['webmail_url']
end
end
end