Don't crash on sending registration emails

This commit is contained in:
Matt Barringer 2013-01-20 13:30:16 +01:00
parent 138106c2fb
commit 64b9764b07

View file

@ -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