Splaspage: Add highlights. Fix cfp inclusion.
This commit is contained in:
parent
0768514d89
commit
88f73bb6fc
4 changed files with 24 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue