From 64b9764b077bdb5205ecf5a387e87a7188b8f15d Mon Sep 17 00:00:00 2001 From: Matt Barringer Date: Sun, 20 Jan 2013 13:30:16 +0100 Subject: [PATCH] Don't crash on sending registration emails --- app/models/email_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/email_settings.rb b/app/models/email_settings.rb index 2175eb0f..7dfe8f36 100644 --- a/app/models/email_settings.rb +++ b/app/models/email_settings.rb @@ -8,12 +8,12 @@ class EmailSettings < ActiveRecord::Base "email" => person.email, "name" => person.public_name, "conference" => conference.title, - "proposalslink" => Rails.application.routes.url_helpers.conference_proposal_url(conference.short_title, event, :host => OSEM_CONFIG["url_for_emails"]), "registrationlink" => Rails.application.routes.url_helpers.register_conference_url(conference.short_title, :host => OSEM_CONFIG["url_for_emails"]) } if !event.nil? h["eventtitle"] = event.title + h["proposalslink"] = Rails.application.routes.url_helpers.conference_proposal_url(conference.short_title, event, :host => OSEM_CONFIG["url_for_emails"]) end h end