mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
6
config/initializers/action_mailer.rb
Normal file
6
config/initializers/action_mailer.rb
Normal 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
|
||||
Reference in New Issue
Block a user