add highlights and fix cfp in splashpage
This commit is contained in:
parent
8e25338436
commit
ecfc348ea8
17 changed files with 111 additions and 32 deletions
|
|
@ -43,6 +43,10 @@ class Conference < ActiveRecord::Base
|
|||
def confirmed
|
||||
where(state: :confirmed)
|
||||
end
|
||||
|
||||
def highlights
|
||||
where(is_highlight: true)
|
||||
end
|
||||
end
|
||||
has_many :event_users, through: :events
|
||||
has_many :speakers, -> { distinct }, through: :event_users, source: :user do
|
||||
|
|
@ -559,10 +563,6 @@ class Conference < ActiveRecord::Base
|
|||
email_settings.updated_conference_registration_dates_template
|
||||
end
|
||||
|
||||
def keynote_speakers
|
||||
User.with_role(:keynote_speaker, self)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
after_create do
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
class Splashpage < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
attr_accessible :public,
|
||||
:include_tracks, :include_program,
|
||||
:include_tracks, :include_program, :include_cfp,
|
||||
:include_venue, :include_registrations,
|
||||
:include_tickets, :include_lodgings,
|
||||
:include_sponsors, :include_social_media
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue