Merge pull request #2959 from coopdevs/fix-name-error-on-migrate

Move default_url_options set up to an initializer
This commit is contained in:
Pau Pérez Fabregat
2018-10-31 10:51:06 +01:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -30,9 +30,6 @@ Openfoodnetwork::Application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
# Use https when creating links in emails
config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] }
# See everything in the log (default is :info)
config.log_level = :info

View File

@@ -30,9 +30,6 @@ Openfoodnetwork::Application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
# Use https when creating links in emails
config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] }
# See everything in the log (default is :info)
# config.log_level = :debug

View File

@@ -0,0 +1,6 @@
ActionMailer::Base.configure do |config|
if Rails.env.production? || Rails.env.staging?
# Use https when creating links in emails
config.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] }
end
end