app/mailers/heya/campaign_mailer.rb in heya-0.9.0 vs app/mailers/heya/campaign_mailer.rb in heya-0.10.0

- old
+ new

@@ -10,11 +10,16 @@ campaign_name = step.campaign_name.underscore step_name = step.name.underscore from = step.params.fetch("from") + from = from.call(user) if from.respond_to?(:call) + bcc = step.params.fetch("bcc", nil) + bcc = bcc.call(user) if bcc.respond_to?(:call) + reply_to = step.params.fetch("reply_to", nil) + reply_to = reply_to.call(user) if reply_to.respond_to?(:call) subject = step.params.fetch("subject") { I18n.t("#{campaign_name}.#{step_name}.subject", **attributes_for(user)) } subject = subject.call(user) if subject.respond_to?(:call)