Skip to content

Commit

Permalink
remove support for Store.current after solidusio/solidus#2041
Browse files Browse the repository at this point in the history
  • Loading branch information
brchristian committed Jun 11, 2019
1 parent 10f0d35 commit 366f8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mailers/spree/gift_card_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 366f8af

Please sign in to comment.