summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-18 20:37:43 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-18 20:37:43 +0200
commita08e8b0bcfb427852b7aa08f09e28841b6aa8270 (patch)
treeb10109d6312747c6ae84c1f17105cf90e3b59106 /lib
parenta02505f996b02a4313c9e266b88fbe7b844fb8da (diff)
downloadnorsk-urskog-registrations-a08e8b0bcfb427852b7aa08f09e28841b6aa8270.tar.gz
norsk-urskog-registrations-a08e8b0bcfb427852b7aa08f09e28841b6aa8270.tar.bz2
norsk-urskog-registrations-a08e8b0bcfb427852b7aa08f09e28841b6aa8270.zip
Use passed in arg rather than instance var in send_registration_emails.
Diffstat (limited to 'lib')
-rw-r--r--lib/registration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/registration.rb b/lib/registration.rb
index 6fc4b9a..7d1e704 100644
--- a/lib/registration.rb
+++ b/lib/registration.rb
@@ -7,8 +7,8 @@ def send_registration_emails_for(band, pdf_url)
mail = Mail.new
mail.charset = 'UTF-8'
mail.to = settings.contact_email
- mail.from = @band.contact.email
- mail.subject = "Registrering av band #{@band.name} til Norsk Urskog"
+ mail.from = band.contact.email
+ mail.subject = "Registrering av band #{band.name} til Norsk Urskog"
mail.body = erb :registration_email, :layout => false, :locals => { :pdf_url => pdf_url }
if settings.environment != :test && settings.respond_to?(:smtp)