Fixed error in user_mailer
This commit is contained in:
parent
5c11c6147e
commit
7e3163c0d0
@ -171,11 +171,11 @@ class UserMailer < ActionMailer::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def set_host
|
def set_host(*args)
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
@host = "https://#{I18n.location.to_s}.bikebike.org"
|
@host = "https://#{I18n.locale.to_s}.bikebike.org"
|
||||||
elsif Rails.env.preview?
|
elsif Rails.env.preview?
|
||||||
@host = "https://preview-#{I18n.location.to_s}.bikebike.org"
|
@host = "https://preview-#{I18n.locale.to_s}.bikebike.org"
|
||||||
else
|
else
|
||||||
@host = UserMailer.default_url_options[:host]
|
@host = UserMailer.default_url_options[:host]
|
||||||
end
|
end
|
||||||
|
1
config/initializers/delayed_job_config.rb
Normal file
1
config/initializers/delayed_job_config.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
|
Loading…
x
Reference in New Issue
Block a user