I have base class for mailer with default configs:
class CustomerMailer < ApplicationMailer
default reply_to: Setting.email_reply_to
end
On development all works as expect, but on staging or production Setting.email_reply_to always return nil. But if i get this value from rails c all works, problem only on mailer.
I have base class for mailer with default configs:
On
development
all works as expect, but on staging or productionSetting.email_reply_to
always returnnil
. But if i get this value fromrails c
all works, problem only on mailer.For fix this problem i changed
to
Why this happend?