From 366f8af516614ea789c5bba7e80953562cf5dead Mon Sep 17 00:00:00 2001 From: Brian Christian Date: Mon, 10 Jun 2019 08:26:24 -0400 Subject: [PATCH] remove support for Store.current after https://github.com/solidusio/solidus/pull/2041 --- app/mailers/spree/gift_card_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/spree/gift_card_mailer.rb b/app/mailers/spree/gift_card_mailer.rb index ce249f81..07fb3593 100644 --- a/app/mailers/spree/gift_card_mailer.rb +++ b/app/mailers/spree/gift_card_mailer.rb @@ -3,7 +3,7 @@ def gift_card_email(gift_card) @gift_card = gift_card.respond_to?(:id) ? gift_card : Spree::VirtualGiftCard.find(gift_card) @order = @gift_card.line_item.order send_to_address = @gift_card.recipient_email.presence || @order.email - subject = "#{Spree::Store.current.name} #{I18n.t('spree.gift_card_mailer.gift_card_email.subject')}" - mail(to: send_to_address, from: from_address(Spree::Store.current), subject: subject) + subject = "#{Spree::Store.default.name} #{I18n.t('spree.gift_card_mailer.gift_card_email.subject')}" + mail(to: send_to_address, from: from_address(Spree::Store.default), subject: subject) end end