Commit 1216d3fa authored by Bogdan Denkovych's avatar Bogdan Denkovych

Remove `action_mailer.default_url_options` override in development

Developers could use different protocol/host/port in development.

For instance, I use `https://gdk.test:3443`.
I noticed that links in emails point to `http://localhost:3000`.

This change should make links to be generated based on a developer's configs.

This setting is set by
`Rails.application.routes.default_url_options = default_url_options`
in `config/initializers/default_url_options.rb`.
parent 461be6e4
......@@ -42,8 +42,6 @@ Rails.application.configure do
# Raises helpful error messages.
config.assets.raise_runtime_errors = true
# For having correct urls in mails
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# Open sent mails in browser
config.action_mailer.delivery_method = :letter_opener_web
# Log mail delivery errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment