Splaspage: Add highlights. Fix cfp inclusion.

This commit is contained in:
Stella Rouzi 2014-11-27 20:40:26 +02:00
parent e9456be31a
commit ed8a71e554
13 changed files with 61 additions and 24 deletions

View file

@ -562,6 +562,14 @@ class Conference < ActiveRecord::Base
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