Commit 3b534e9c97c94063f77e8f6adfa3203bbc3f1d72

Authored by Stephen Crosby
2 parents 69c98017 cdd28f64
Exists in master and in 1 other branch production

Merge pull request #867 from stevecrozz/to_sym_delivery_method

Refs #866 to_sym email_delivery_method
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
config/load.rb
... ... @@ -34,7 +34,9 @@ Errbit::Config = Configurator.run({
34 34 github_org_id: ['GITHUB_ORG_ID'],
35 35 github_access_scope: ['GITHUB_ACCESS_SCOPE'],
36 36  
37   - email_delivery_method: ['EMAIL_DELIVERY_METHOD'],
  37 + email_delivery_method: ['EMAIL_DELIVERY_METHOD', -> (values) {
  38 + values[:email_delivery_method] && values[:email_delivery_method].to_sym
  39 + }],
38 40  
39 41 # smtp settings
40 42 smtp_address: ['SMTP_SERVER'],
... ...