add highlights and fix cfp in splashpage

This commit is contained in:
Stella Rouzi 2014-12-08 18:08:21 +02:00 committed by Stella
parent 8e25338436
commit ecfc348ea8
17 changed files with 111 additions and 32 deletions

View file

@ -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

View file

@ -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