add event_type keynote
This commit is contained in:
parent
88f73bb6fc
commit
6a62e9f8b9
2 changed files with 3 additions and 3 deletions
|
|
@ -566,8 +566,8 @@ class Conference < ActiveRecord::Base
|
|||
email_settings.updated_conference_registration_dates_template
|
||||
end
|
||||
|
||||
def keynote_speakers
|
||||
User.with_role(:keynote_speaker, self)
|
||||
def keynotes
|
||||
events.where(state: 'confirmed').select { |e| e.event_type.title == 'Keynote'}
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue