Attributes for email templates rendered conditionally, more added

This commit is contained in:
Gopesh Tulsyan 2014-07-24 10:11:38 +05:30
parent f1f0f16d5c
commit 7f6e218299
3 changed files with 55 additions and 30 deletions

View file

@ -19,9 +19,15 @@ class EmailSettings < ActiveRecord::Base
'registration_start_date' => conference.registration_start_date,
'registration_end_date' => conference.registration_end_date,
'venue' => conference.venue.name,
'venue_adress' => conference.venue.address,
'venue_address' => conference.venue.address,
'registrationlink' => Rails.application.routes.url_helpers.register_conference_url(
conference.short_title, host: CONFIG['url_for_emails'])
conference.short_title, host: CONFIG['url_for_emails']),
'conference_splash_link' => Rails.application.routes.url_helpers.conference_url(
conference.short_title, host: CONFIG['url_for_emails']),
'cfp_start_date' => conference.call_for_papers.start_date,
'cfp_end_date' => conference.call_for_papers.end_date,
'schedule_link' => Rails.application.routes.url_helpers.conference_schedule_url(
conference.short_title, host: CONFIG['url_for_emails'])
}
if !event.nil?