Splaspage: Add highlights. Fix cfp inclusion.

This commit is contained in:
Stella Rouzi 2014-11-27 20:40:26 +02:00
parent 0768514d89
commit 88f73bb6fc
4 changed files with 24 additions and 20 deletions

View file

@ -566,6 +566,18 @@ class Conference < ActiveRecord::Base
email_settings.updated_conference_registration_dates_template
end
def keynote_speakers
User.with_role(:keynote_speaker, self)
end
##
#
# ====Returns
# * +Array+ -> Events with attribute 'is_highlight'
def highlights
events.where(is_highlight: true)
end
private
after_create do