Skip to content

Commit

Permalink
Delete outdated base_mailer_decorator.from_address (it used old MailM…
Browse files Browse the repository at this point in the history
…ethod). This way we rely on the correct spree base_mailer.from_address (that gets it from Spree::Config
  • Loading branch information
luisramos0 committed Aug 25, 2018
1 parent f04903b commit 0de691b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/mailers/spree/base_mailer_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@

protected

# This method copies the one defined in Spree's mailers. It should be removed
# once in Spree v2.0 and Spree's BaseMailer class lands in our codebase.
# Then, we'll be able to rely on its #from_address.
def from_address
Spree::MailMethod.current.preferred_mails_from
end

def roadie_options
# This lets us specify assets using relative paths in email templates
super.merge(url_options: {host: URI(spree.root_url).host })
Expand Down

0 comments on commit 0de691b

Please sign in to comment.