Commit 6c1303eb8fd3841c5d9b5dc5f3e882e32f84fb09

Authored by Dmitry Lihachev
1 parent 096da89f
Exists in master and in 1 other branch production

setting default_url_options[:host] in heroku

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
config/environments/production.rb
... ... @@ -37,6 +37,9 @@ Errbit::Application.configure do
37 37 # Disable delivery errors, bad email addresses will be ignored
38 38 # config.action_mailer.raise_delivery_errors = false
39 39  
  40 + # Set default host for ActionMailer links
  41 + config.action_mailer.default_url_options = { :host => ENV['ERRBIT_HOST'] } if ENV['ERRBIT_HOST']
  42 +
40 43 # Enable threaded mode
41 44 # config.threadsafe!
42 45  
... ...