app/mailers/heya/campaign_mailer.rb in heya-0.5.3 vs app/mailers/heya/campaign_mailer.rb in heya-0.6.0

- old
+ new

@@ -1,7 +1,8 @@ module Heya class CampaignMailer < ApplicationMailer - layout "heya/campaign_mailer" + DEFAULT_LAYOUT = "heya/campaign_mailer" + layout -> { params.fetch(:step).params.fetch("layout", DEFAULT_LAYOUT) } def build user = params.fetch(:user) step = params.fetch(:step)